Temporary files are created by Windows and installed applications during everyday activities such as browsing the internet, installing software, downloading updates, and running programs. Although many temporary files are removed automatically, some can remain on your computer and gradually consume valuable storage space.
Windows 11 includes a built-in feature called Storage Sense that can automatically remove certain temporary files, empty the Recycle Bin after a specified period, and manage locally available cloud files according to your settings. By configuring this feature, you can reduce the need to clean your computer manually.
You can also use Windows Storage settings, Disk Cleanup, and Command Prompt to remove eligible temporary files when necessary. However, automatic cleanup should be configured carefully because some files, particularly those in the Downloads folder, may contain documents or installers you still need.
In this guide, you will learn how to configure Windows 11 to delete temporary files automatically, customize cleanup schedules, remove temporary files manually, and troubleshoot common problems. These methods use built-in Windows tools and do not require third-party cleaning software.
Method 1: Automatically Delete Temporary Files Using Storage Sense
Storage Sense is the easiest way to automate temporary file cleanup in Windows 11. Once configured, Windows can remove eligible temporary files when storage space is needed or according to your selected schedule.
Follow these steps:
- Press Windows + I to open Settings.
- Select System from the left sidebar.
- Click Storage.
- Find Storage Sense and click it.
- Turn on the Storage Sense toggle.
- Review the available cleanup settings.
- Choose when Storage Sense should run.
- Configure the Recycle Bin and cloud content options according to your preferences.
Depending on your Windows 11 version, Storage Sense may offer schedules such as running when disk space is low, every day, every week, or every month.
If you want Windows to manage temporary files regularly, choose a suitable automatic schedule when the option is available. If you prefer Windows to clean files only when storage becomes limited, select the corresponding low-disk-space option.
Storage Sense can remove temporary files that applications are no longer using. It does not guarantee that every temporary file will be deleted, because some files may still be required by Windows or running applications.
After configuring the settings, you can leave Storage Sense enabled. Windows will perform eligible cleanup tasks according to the selected conditions.
Method 2: Configure Storage Sense to Delete Temporary Files Automatically
Enabling Storage Sense is only the first step. You should also review its individual cleanup options to determine what Windows can remove automatically.
Follow these steps:
- Open Settings.
- Navigate to System > Storage > Storage Sense.
- Make sure Storage Sense is turned on.
- Select the preferred cleanup schedule.
- Review the option for deleting temporary files that applications are not using.
- Configure automatic Recycle Bin cleanup.
- Review the Downloads folder setting before changing it.
- Close Settings after confirming your preferences.
The temporary file option allows Windows to remove eligible temporary files without requiring you to select each file manually.
You can also configure how long deleted files remain in the Recycle Bin before Windows removes them automatically. Available choices may include periods such as 30 days, 14 days, or other intervals depending on the Windows build.
The Downloads folder requires extra attention. If you enable automatic deletion of files that have remained there for a specified period, Windows may remove downloaded documents, installers, videos, and other personal files.
If you regularly save important files in Downloads, leave its automatic cleanup disabled unless you have a reliable backup and understand the consequences.
Cloud content cleanup is another separate setting. Its behavior depends on the supported cloud storage provider and synchronization configuration. Review those options before enabling them.
Method 3: Run Storage Sense Immediately
You do not have to wait for the next scheduled cleanup. Windows 11 also lets you run Storage Sense manually.
This is useful when your system drive is running low on space and you want Windows to remove eligible files immediately.
Follow these steps:
- Press Windows + I.
- Select System > Storage.
- Open Storage Sense.
- Confirm that Storage Sense is enabled.
- Find the option to run Storage Sense now.
- Click Run Storage Sense now or the equivalent option shown on your Windows build.
- Wait for the cleanup process to finish.
Windows will process the cleanup categories permitted by your current settings. The amount of storage recovered depends on the temporary files and other eligible content available on your computer.
Running Storage Sense does not mean that every file in the Temporary Files folder or Downloads folder will be deleted. The feature follows its own eligibility rules and the options you have configured.
After the cleanup finishes, return to Settings > System > Storage and review the available disk space.
If Storage Sense frees only a small amount of space, another category, such as installed applications, videos, or personal files, may be responsible for most of the storage usage.
Method 4: Delete Temporary Files Through Windows Storage Settings
You can manually remove temporary files through the Storage page even if you do not want to enable automatic cleanup.
Follow these steps:
- Open Settings using Windows + I.
- Select System.
- Click Storage.
- Select Temporary files.
- Wait for Windows to calculate the size of the available categories.
- Review the categories displayed.
- Select the temporary files you want to remove.
- Click Remove files and confirm the action if prompted.
Windows may list temporary system files, thumbnails, delivery optimization files, and other categories. The available choices depend on your system.
Before selecting a category, read its description carefully. The Downloads category, if shown, may contain personal files that you want to keep.
Previous Windows installation files may also appear after a major upgrade. Removing them can free up substantial storage, but it can also remove the built-in rollback option for returning to the previous Windows installation.
This method is manual rather than automatic. For recurring cleanup, configure Storage Sense separately.
Method 5: Automatically Manage the Recycle Bin
Deleting a file normally moves it to the Recycle Bin instead of removing it permanently. Those files can continue to occupy disk space until the Recycle Bin is emptied.
Storage Sense can help manage this space automatically.
Follow these steps:
- Open Settings.
- Go to System > Storage > Storage Sense.
- Enable Storage Sense if it is not already enabled.
- Find the setting for deleting files in the Recycle Bin.
- Select a suitable retention period.
- Leave the setting disabled if you want to manage the Recycle Bin manually.
For example, you may choose to remove Recycle Bin files after they have remained there for a specified number of days.
The appropriate period depends on how frequently you restore deleted files. A longer retention period provides more time to recover something you deleted accidentally, while a shorter period can free up storage sooner.
Remember that files removed automatically from the Recycle Bin are generally no longer recoverable through the normal Recycle Bin interface. Keep important files backed up before enabling automatic deletion.
Method 6: Delete Temporary Files Using Disk Cleanup
Disk Cleanup is a traditional Windows utility that can remove selected temporary files and other eligible system data. It is useful when you want to review cleanup categories manually.
Follow these steps:
- Press Windows + S to open Windows Search.
- Type Disk Cleanup.
- Open the Disk Cleanup application.
- Select the drive you want to clean, usually the C: drive.
- Wait for Windows to calculate the amount of space that can be recovered.
- Review the listed file categories.
- Select the categories you want to remove.
- Click OK and confirm the deletion.
Disk Cleanup can help remove temporary internet files, thumbnails, temporary files, and other eligible data.
To review additional system cleanup options, open Disk Cleanup and select Clean up system files if available. Windows may ask you to choose the drive again before displaying more categories.
Be careful when selecting previous Windows installation files or other categories that affect recovery options. Review each description before proceeding.
Disk Cleanup is primarily a manual utility. For automatic recurring cleanup, Storage Sense is the better choice.
Method 7: Delete Temporary Files Using Command Prompt
Advanced users can use Command Prompt to remove eligible files from their user-specific temporary folder. This method can be useful when you want a quick manual cleanup without navigating through Settings.
Follow these steps:
- Press Windows + R.
- Type
cmd. - Press Enter.
- Run the following command to open the current user’s temporary folder:
explorer %TEMP% - Review the files in the folder.
- Select files you recognize as unnecessary and delete them.
- Skip files that Windows says are currently in use.
You can also open the folder directly by entering %TEMP% in the File Explorer address bar.
Some temporary files cannot be removed while applications are running. This is normal. Do not force-delete files that are actively being used by Windows or an application.
Avoid using broad deletion commands copied from unknown sources. A command that targets the wrong folder or uses an incorrect path can delete important data.
For most users, Storage Sense is safer and more convenient because it handles eligible cleanup automatically and reduces the need to manage individual files.
Method 8: Verify That Automatic Cleanup Is Working
If temporary files continue to accumulate, check whether Storage Sense is enabled and configured correctly.
Follow these steps:
- Open Settings > System > Storage.
- Select Storage Sense.
- Confirm that its main toggle is enabled.
- Review the automatic schedule.
- Check the temporary file and Recycle Bin settings.
- Run Storage Sense manually if you want to test the cleanup process.
- Return to the Storage page and review the available space.
If no space is recovered, your computer may have very few eligible files to remove. Some temporary files may also remain because Windows or installed applications are using them.
Restarting your computer may help if files are locked by applications that were previously running. After restarting, check Storage Sense again.
You should also review the main Storage page to determine which categories are consuming space. If installed applications, videos, or other personal files account for most of the used storage, deleting temporary files alone will not make a significant difference.
Keep Windows updated and avoid installing multiple third-party cleaning utilities that claim to remove every unnecessary file. Such programs may delete data you still need or provide little benefit over Windows’ built-in tools.
Conclusion
Windows 11 makes it easy to automatically delete eligible temporary files through Storage Sense. By enabling the feature, selecting an appropriate cleanup schedule, and configuring its individual options, you can reduce the amount of storage occupied by temporary data without performing manual cleanup every time.
For the best results, review the temporary file settings, choose a suitable Recycle Bin retention period, and be cautious when configuring automatic deletion from the Downloads folder. You can also run Storage Sense immediately whenever you need additional space.
If automatic cleanup does not recover enough storage, use the Temporary Files page or Disk Cleanup to review additional categories. Check the main Storage page to identify whether applications or personal files are consuming most of the drive space.
With the right configuration, Storage Sense can handle routine cleanup in the background while helping you avoid unnecessary deletion of important files.
Frequently Asked Questions
1. Does Windows 11 automatically delete temporary files?
Yes. Windows 11 can automatically delete eligible temporary files when Storage Sense is enabled and configured. The exact cleanup behavior depends on your settings and the files available on your computer.
2. How often should Storage Sense run?
For most users, running Storage Sense when disk space is low is a reasonable starting point. If you regularly work with large files or frequently install applications, a more frequent schedule may be useful when your Windows version offers that option.
3. Will Storage Sense delete files from Downloads?
It can, if you enable the relevant Downloads cleanup setting and select an applicable retention period. Leave this option disabled if you store important documents, installers, or other files in Downloads and do not want Windows to remove them automatically.
4. Is Storage Sense better than Disk Cleanup?
Storage Sense is generally more convenient for recurring automatic cleanup. Disk Cleanup is useful when you want to review and select additional cleanup categories manually. Both are built-in Windows tools.
Quick Summary
- Enable Storage Sense under Settings > System > Storage.
- Configure the automatic schedule and temporary file cleanup options.
- Review Recycle Bin and Downloads settings carefully before enabling automatic deletion.
- Use Disk Cleanup or the Temporary Files page when you need additional manual cleanup.






