On this page · 10 sections
- Temp file clean-up methods at a glance
- Method 1: Temporary files in Settings (Windows 11)
- Method 2: Turn on Storage Sense (automatic clean-up)
- Method 3: Clear the %temp% folder by hand
- Method 4: Disk Cleanup (cleanmgr) still works
- How to clear temp files and cache on a Mac (macOS 27)
- What not to delete
- For IT teams: manage Storage Sense with Intune or Group Policy
- How eCorpIT can help
- References
Summary. On a Windows 11 laptop, open Settings > System > Storage > Temporary files, tick the categories you want gone and select Remove files. For a manual clean, press Windows + R, type %temp% and delete files older than about a week, which Microsoft's Disk Cleanup reference says is safe. Storage Sense automates the job: it is off by default, works only on the system drive, and leaves Downloads and OneDrive alone unless you change that. Its default Recycle Bin threshold is 30 days. Disk Cleanup (cleanmgr) still runs on Windows 11 and is not on Microsoft's deprecated-features list, last updated on 6 November 2026, but the Windows 11 help now leads with Storage Sense and Cleanup recommendations. A Mac has no temp-file button: macOS clears caches and logs that are safe to delete when space is needed, so use the recommendations in System Settings > General > Storage and empty the Trash. Never delete the WinSxS folder by hand. Microsoft warns it can leave a PC unable to start or update.
About this article. For anyone running short of space on a Windows 11 or Mac laptop, and for IT teams that manage Storage Sense on company devices. We checked every step and setting name on 11 November 2026 against Microsoft Support and Microsoft Learn pages and Apple's Mac User Guide for macOS 27 Golden Gate. Microsoft's help gives one set of steps for all current Windows 11 releases, which on that date were versions 24H2, 25H2 and 26H2, plus 26H1 on some new devices only. Labels can differ slightly between builds. Back up anything important before a large clean-up. Researched with AI assistance and reviewed by our editorial team.
Temp file clean-up methods at a glance
This table summarises the built-in tools Microsoft and Apple document.
| Method | Where | What it removes | Risk |
|---|---|---|---|
| Temporary files | Settings > System > Storage > Temporary files | Categories you tick, such as temporary files, Recycle Bin, previous Windows installation | Low if you read each tick box |
| Cleanup recommendations | Settings > System > Storage > Cleanup recommendations | Temporary files, large or unused files, files synced to the cloud, unused apps | Low; review each list |
| Storage Sense | Settings > System > Storage > Storage Sense | Unused temporary files; Recycle Bin items after 30 days by default | Low; automatic |
| %temp% folder | Windows + R, then %temp% | Your own apps' temporary files | Low; skip files in use |
| Disk Cleanup | Windows + R, then cleanmgr | Temporary files, Recycle Bin, setup and update leftovers | Medium for system-file options |
| Mac Storage settings | System Settings > General > Storage | Files moved to iCloud, watched Apple TV content, old Trash | Low |
Method 1: Temporary files in Settings (Windows 11)
- Select Start > Settings > System > Storage.
- Under the disk usage list, select Temporary files.
- Read each tick box. Untick anything you still need, such as the Recycle Bin or Downloads if either is listed.
- Select Remove files.
Previous Windows Installation(s) appears here after an upgrade. Removing it deletes the Windows.old folder, which you need to go back to your earlier version of Windows. Microsoft lists it as deletable when fewer than 10 days have passed since the upgrade, and the removal can't be undone.
The same Storage page has Cleanup recommendations. It groups temporary files, large or unused files, files synced to the cloud and unused apps, and shows how much space each would free. Review each section, then select Clean up under it.
Method 2: Turn on Storage Sense (automatic clean-up)
Storage Sense removes unneeded temporary files and old Recycle Bin items for you. Its settings apply only to your own account.
- Go to Start > Settings > System > Storage and set Storage Sense to On.
- Select Storage Sense, then choose how often it runs under Run Storage Sense.
- Set how long items can stay in the Recycle Bin before deletion and, if you want, how long Downloads files can go unopened before deletion.
- If you are signed in to OneDrive, choose when unopened cloud files become online-only. From Windows 11 version 22H2 the default is 30 days, and this never deletes the file from OneDrive. Files marked Always keep on this device are exempt.
Microsoft's Storage Sense page, updated on 3 November 2026, adds four points.
- Storage Sense is off by default. If your disk runs low and you have never used it, Windows may switch it on to clear selected temporary files, then notify you.
- It works only on the system drive, usually C:. For other drives, use Advanced storage settings > Storage used on other drives.
- It can't run unless you have been signed in and online for more than 10 minutes.
- You are in a low-disk state when the capacity bar on the Storage page turns red.
Method 3: Clear the %temp% folder by hand
%temp% opens the folder your TEMP environment variable points to: your personal Temp folder. Apps look for the TMP variable first, then TEMP.
- Restart the laptop, or close open apps, so fewer files are locked.
- Press Windows + R, type
%temp%and press Enter.
- In File Explorer, select View > Details, then sort by Date modified.
- Select files and folders not modified for at least a week, the age Microsoft's Disk Cleanup reference treats as safe, and press Delete.
- If Windows says a file is in use, skip it. A running app still needs it.
- Empty the Recycle Bin to get the space back.
Do this only in your own Temp folder. Processes running as SYSTEM use C:\Windows\SystemTemp, which Microsoft locks so that ordinary processes can't reach it. Leave it to the Windows tools.
Method 4: Disk Cleanup (cleanmgr) still works
Its status on 11 November 2026:
- It runs on Windows 11. Microsoft's cleanmgr command reference lists Windows 11 and Windows 10 among the supported systems.
- It is not on Microsoft's list of deprecated features for the Windows client, last updated on 6 November 2026.
- Microsoft's old Disk Cleanup help link now redirects to its Free up drive space in Windows page, where the Disk Cleanup steps sit under the Windows 10 tab.
To use it, press Windows + R, type cleanmgr, press Enter, pick drive C: and select OK. Tick the file types you want to delete; Downloaded Program Files, Temporary Internet Files and Thumbnails are ticked by default. For update and upgrade leftovers, select Clean up system files, pick the drive again and choose the system file types. Select OK, then Delete files. On a drive other than the Windows drive, only the Recycle Bin and Catalog Files for the Content Indexer options appear.
How to clear temp files and cache on a Mac (macOS 27)
macOS has no temporary-files control, and Apple never asks you to empty cache folders by hand. Instead:
- Choose Apple menu > System Settings, select General in the sidebar, then select Storage.
- Review the recommendations. Store in iCloud keeps Desktop and Documents files, photos and messages in iCloud.
Optimize Storageremoves Apple TV films and shows you have watched and keeps only recent email attachments when space is needed. Empty Trash automatically erases items that have been in the Trash for more than 30 days.
- Delete what you don't need from Downloads, uninstall unused apps and delete old iPhone or iPad backups. In Mail, choose Mailbox > Erase Junk Mail and Mailbox > Erase Deleted Items.
- Empty the Trash. The space isn't freed until you do.
Apple's macOS 27 user guide says that when space is needed, macOS also clears caches and logs that are safe to delete, including temporary database files, interrupted downloads, staged macOS and app updates, and Safari website data. If you need room for one task, such as installing a macOS update, Apple suggests starting up in safe mode, which clears certain system caches that macOS rebuilds as needed. Restart normally to leave safe mode. Our macOS 27 Golden Gate guide covers the rest of the release.
The System Data category in Storage covers Apple and third-party files that don't fit any other category. Browser caches are separate: for Chrome, see how to clear cache in Chrome.
What not to delete
- WinSxS. Microsoft warns that deleting files from the WinSxS folder, or the whole folder, can damage Windows so badly that the PC won't start or take updates. Windows trims it automatically, and Disk Cleanup's update clean-up reduces it safely.
- Windows.old, if you might roll back. Removing Previous Windows Installation(s) can't be undone.
- Windows system folders. Leave
C:\Windowsand its subfolders to the Windows tools above.
- Mac System and Library folders. Apple's documented steps never ask you to delete them.
- Anything you haven't looked at. Downloads and the Recycle Bin can hold the only copy of a file.
Every step here uses built-in tools; none needs a third-party cleaner app.
For IT teams: manage Storage Sense with Intune or Group Policy
On managed fleets, Storage Sense is controlled through the Storage area of the Policy CSP (Pro, Enterprise, Education and IoT Enterprise, Windows 10 version 1903 and later), deployed with Intune or with Group Policy under Computer Configuration > System > Storage Sense. Defaults are from Microsoft's policy reference.
| Policy | What it does | Default |
|---|---|---|
| AllowStorageSenseGlobal | Enabled: on, and users can't turn it off. Disabled: off, and users can't turn it on | Not configured: off until low disk |
| AllowStorageSenseTemporaryFilesCleanup | Deletes users' temporary files that aren't in use | 1 (allowed) |
| ConfigStorageSenseGlobalCadence | 0 low disk, 1 daily, 7 weekly, 30 monthly | 0 |
| ConfigStorageSenseRecycleBinCleanupThreshold | Days before Recycle Bin items are deleted (0 to 365) | 30 |
| ConfigStorageSenseDownloadsCleanupThreshold | Days before unopened Downloads files are deleted (0 to 365) | 0 (never) |
| ConfigStorageSenseCloudContentDehydrationThreshold | Days before unopened cloud files go online-only (0 to 365) | 0 (never) |
Note the mismatch: Microsoft's consumer page says Windows 11 22H2 and later make OneDrive files online-only after 30 days unopened, while the policy reference lists 0 (never) for that setting. Set the value explicitly so devices behave predictably.
For scripted clean-ups, cleanmgr supports /sageset:n to save a profile (n can be 0 to 9999) and /sagerun:n to run it, for example from a scheduled task. /verylowdisk runs with default settings and no prompts.
Downloads folders also collect exported reports and attachments long after anyone needs them, so clean-up cadence is a data-hygiene question too. Our cybersecurity services team can help set endpoint retention to match your policies.
How eCorpIT can help
eCorpIT is a Gurugram-based technology organisation, founded in 2021, assessed at CMMI Level 5 and MSME certified, with senior-led engineering teams working across AWS, Microsoft and Google platforms. Our digital transformation services team helps organisations standardise storage, update and clean-up settings across Windows and Mac laptop fleets. Talk to us at /contact-us/.
Last updated: 11 November 2026.