The longer you have a PC, the more files that accumulate on your hard drive. In addition to the files you use often, such as documents and media, Windows also creates files that are meant to be temporary. These files, which include logs, caches, and downloaded installers, can be huge—this can hog precious hard drive space and even decrease the efficiency of your PC. This wikiHow article teaches you how to use tools built in to Windows to remove unnecessary files from your hard drive.
Deleting Unnecessary Files
The easiest way to free up space on your PC is to use Storage Sense, which works for both Windows 10 and 11. To use Storage Sense, go to Settings > System > Storage > Cleanup Recommendations .
Steps
-
1Open Storage Sense on your PC. Storage Sense is a handy part of Windows 10 and 11 that can help you keep your hard drive(s) free of clutter and unnecessary files. [1] X Trustworthy Source Microsoft Support Technical support and product information from Microsoft. Go to source You can use Storage Sense to periodically go through and clear out files, or enable its automatic cleanup feature so it works behind the scenes to preserve hard drive space. Storage Sense is one of the safest ways to get rid of excess files on your PC. To open Storage Sense:
- Open Settings and click System > Storage > Storage Sense .
-
2Check the box next to "Keep Windows running smoothly…". This is under the "Cleanup of temporary files" and ensures that your computer cleans out temporary system and app files automatically.
- This setting keeps your Windows computer running smoothly. [2] X Trustworthy Source Microsoft Support Technical support and product information from Microsoft. Go to source
Advertisement -
Toggle the "Storage Sense" switch to the On position to enable Storage Sense. If you want Storage Sense to run automatically, toggle this switch to the On position. You don't have to turn this switch on if you just want to run it this one time.
- Storage Sense will only delete the files you specify, so don't worry about losing important data.
-
Choose when Storage Sense will run. If you didn't set up Storage Sense to run automatically, just skip to the next step. Otherwise, click the "Run Storage Space" dropdown menu to choose when Storage Space should delete files. You can select a time period such as Every week , or choose During low free disk space to only activate it when you're running out of space.
-
Choose which files to delete. Storage Sense only deletes certain types of files:
- To delete temporary app files that are no longer being used, check the box next to "Delete temporary files that my apps aren't using."
- To delete files from your Recycle Bin that have been there for a certain time period, select that time period from the drop-down menu.
- To delete files from your Downloads folder that you haven't opened within a certain period of time, select a time period from the drop-down menu. If you're the type of person to leave files in your Downloads folder for easy access, you'll want to choose Never from this menu to avoid losing important data.
-
Click Clean now to run Storage Sense. Whether you've enabled Storage Sense to run automatically or not, you can click this button at the bottom to clear out unneeded files using the selections you chose on this screen. Once the files are deleted, you'll see a success message at the bottom.
-
Open Disk Cleanup. An easy way to do this is to press Windows key + S to activate the search bar, type cleanup , and then click Disk Cleanup in the search results. Disk Cleanup is one of the fastest ways to delete unneeded files created by the Windows operating system.
-
Select the files you want to delete. The top section contains options for deleting personal and temporary files—it's usually safe to delete most of these, but if there's anything you're unsure of, leave the selection unchecked. The amount of space you'll save by deleting the selected files appears below the list of file types, and will update as you select and deselect files.
- Downloaded Program Files are the program installers you've downloaded from the internet. These are usually not needed after you've installed the file, unless you plan to install it again.
- Temporary Internet Files are the cached files from browsing with Internet Explorer.
- Windows error reports are log files that contain errors that occur as you use your PC.
- DirectX Shader Cache are cached graphics used to make images on your PC load faster. They aren't required for operation and are safe to delete.
- Delivery Optimization files are previously-downloaded files used for installing updates and are safe to delete.
- Recycle Bin is a folder that contains the files you've deleted. You should only select this option if you are sure you won't need to restore files from your Recycle Bin later.
- Temporary files are simply temporary files created by various apps on your computer. They are not meant to be permanent, so don't worry about losing anything by deleting them.
- Thumbnails are cached images of pictures and videos on your computer that appear when you browse for files. Deleting them is fine and they'll just be automatically created again when necessary.
-
Click OK . A confirmation message will appear, asking if you are sure you want to permanently delete the selected files.
-
Click Delete Files to confirm. This erases all of the selected files.
- Disk Cleanup will close automatically once the selected files are deleted.
-
Re-open Disk Cleanup if you want to delete more files. If you're an administrator on your PC and want to delete even more files, you can use Disk Cleanup again to delete system files. [3] X Trustworthy Source Microsoft Support Technical support and product information from Microsoft. Go to source Just press Windows key + S to activate the search bar, type cleanup , and then click Disk Cleanup in the search results.
-
Click Clean up system files . It's the button in the lower-left area of the window. This scans your drive and calculates how much space you may be able to save by deleting additional files.
- You may be prompted to select the drive again after clicking this button.
-
Delete old system restore points (optional). Windows automatically creates images of your computer it can restore in the event of an emergency. If you're running low on space, you can free some up by deleting old restore points that have been replaced by newer ones. To do this:
- Click the More Options tab at the top.
- Click Clean up in the "System Restore and Shadow Copies" area.
- Click Delete to delete all but the most recent system restore point.
- Return to the Disk Cleanup tab when you're done to continue.
-
Select files to delete. In addition to the same sorts of files you were able to select earlier, you have some more options:
- Windows Update Cleanup files can take up a significant amount of space and are only used to install Windows Updates. Windows will automatically download the latest update files in the future, so you probably won't need to keep these older ones unless instructed by an admin.
- Microsoft Defender Antivirus are non-critical files used by your antivirus program that can safely be deleted.
- Device driver packages, Language Resource Files , and Temporary Windows installation files are all meant to be temporary and can be deleted without issue.
-
Click OK . A confirmation message will appear.
-
Click Delete Files to confirm. Once the files are deleted, Disk Cleanup will close automatically.
-
Open your Windows Storage settings. Windows keeps track of the types of files consuming space on your hard drive and makes it simple to delete the ones you no longer need. The Windows Storage tool makes it easy to find personal files and apps that you no longer need. To open your Storage settings:
- Press Windows key + S to activate the search bar.
- Type storage into the search bar.
- Click Storage settings in the search results.
-
Find the files consuming the most space on your hard drive. Once your storage settings load, you'll see the name of your hard drive (e.g., "Windows C:") followed by a list of categories (e.g., "Apps & features," "Music"). Each category is a type of file, and each has its own bar indicator telling you how much space is being used by that file type.
- To view all categories, click Show more categories below the list.
-
Click a category to view its details. This shows you how much space is occupied by files in this category, and gives you options depending on the type of files you chose.
- For example, if you selected Temporary files , you'll see a list of all files meant to be temporary on your computer.
- If you choose Music , Pictures , or Desktop , you'll see how much space is consumed by the files in those specific folders. You can click the View button inside to see the actual files.
- If you choose Apps & features , you'll see a list of all apps installed on your computer, and how much space each app consumes.
-
Delete files you no longer need. Be super careful here—just because Windows determines that a file or folder is large, that doesn't mean it isn't important to you or someone else who uses the computer. Only delete files that you are sure you no longer need.
- To delete an app from Apps & features , click the name of the app, and then select Uninstall .
- To delete a file or folder, click it once to select it, and then press the delete key on your keyboard. You can also drag it over to the Recycle Bin.
- Temporary files lists the types of temporary files Windows can delete and allows you to select from a list. After making your selection(s), click Remove files at the top to delete those types of files.
Community Q&A
-
QuestionHow can I delete useless Windows files?Pranjal SrivastavaCommunity AnswerGo to the Run command (Windows Button+R) and type in TEMP and delete all the files in the folder which opens. Do the same thing by typing %TEMP% in the run command.
-
QuestionHow do I delete Perch files?Community AnswerClick on what you are trying to delete -- there should be a little trashcan.
Video
Tips
- This doesn't need to be done every day, but perhaps once a month, or when your PC seems to be running slowly.Thanks
- Be careful you do not delete any critical files or your own documents. If you follow the guide carefully you shouldn't, but it is always a good idea to check the 'Recycle Bin' before emptying it, just in case!Thanks
References
- ↑ https://support.microsoft.com/en-us/office/use-storage-sense-to-manage-disk-space-d77af168-e28f-4071-88a6-af08a3341688
- ↑ https://support.microsoft.com/en-us/windows/manage-drive-space-with-storage-sense-654f6ada-7bfc-45e5-966b-e24aded96ad5#ID0EBD=Windows_10
- ↑ https://support.microsoft.com/en-us/windows/disk-cleanup-in-windows-10-8a96ff42-5751-39ad-23d6-434b4d5b9a68
About This Article
1. Press Windows + S
.
2. Type cleanup
and click Disk Cleanup
.
3. Choose files to delete.
4. Click OK
.
5. Click Delete files
.
Reader Success Stories
- "I really needed some space on my computer so I followed the steps, and now I have more than 30 gigabytes! Thank you!" ..." more