A PC that's grinding to a halt often isn't dying of old age β it's drowning in years of cache files, temporary downloads, old update leftovers and browser clutter it never got round to tidying up. The good news is that reclaiming that space is one of the safest and most satisfying maintenance jobs you can do yourself, often freeing up tens of gigabytes in under an hour. This guide walks through exactly where junk hides on Windows and macOS, and the safest ways to clear it without breaking anything important.
Why Cache Files Build Up in the First Place
Cache files exist to make your computer faster, not slower. When an app or website loads something once, it saves a local copy so it doesn't have to fetch it again next time. That's sensible in small doses, but caches rarely clean themselves up properly. Browsers hoard images and scripts from every site you visit, Windows keeps every update package it's ever downloaded "just in case", and apps like Adobe products, Steam and Spotify all maintain their own private stashes that can balloon over months of use.
None of this is inherently dangerous to delete β it's disposable by design β but it's worth understanding what you're clearing before you start, so you don't accidentally remove something you actually need, like saved downloads or offline documents.
Checking How Much Space You're Actually Using
Before diving in, it helps to see where the space is going.
On Windows
- Open Settings > System > Storage.
- Windows will scan your drive and show a breakdown by category β apps, temporary files, documents, and so on.
- Click Temporary files to see an itemised list Windows is willing to clean automatically.
On macOS
- Open the Apple menu > System Settings > General > Storage.
- Click the i button or Manage next to your disk to see a category breakdown.
- macOS offers built-in recommendations here too, such as emptying the Trash automatically after 30 days.
Pro tip: Don't just look at free space β look at what's using it. A single 40 GB "Other" category on a Mac, or an unexplained multi-gigabyte folder in
AppDataon Windows, is a much better clue than the top-line free space number.
Clearing Cache and Temp Files on Windows
Method 1: Storage Sense (Automatic, Ongoing)
Windows 10 and 11 include a built-in tool called Storage Sense that can clean up automatically on a schedule.
- Go to Settings > System > Storage > Storage Sense.
- Toggle it on.
- Set how often it runs (daily, weekly, monthly, or "during low free disk space").
- Configure it to delete temporary files, empty the Recycle Bin after a set number of days, and clean up your Downloads folder if it's grown into a dumping ground.
This is the best long-term fix because it prevents the problem recurring rather than just treating the symptom once.
Method 2: Disk Cleanup (One-Off Deep Clean)
- Press the Windows key, type "Disk Cleanup", and open it.
- Select your system drive (usually
C:). - Tick the boxes for Temporary Internet Files, Delivery Optimization Files, Recycle Bin, and Temporary Files.
- Click Clean up system files for a second, more thorough pass β this unlocks options like Windows Update Cleanup, which can reclaim several gigabytes left behind by old updates.
- Confirm and let it run.
Method 3: Manually Clearing the Temp Folder
- Press Windows key + R to open Run.
- Type
%temp%and press Enter. - Select all files (Ctrl+A) and delete them. Windows will skip any files currently in use rather than error out β that's normal, just click "Skip".
Clearing Browser Cache
Every browser stores its own cache separately from the operating system:
- Chrome/Edge: Settings > Privacy and security > Clear browsing data > choose "Cached images and files" and a time range.
- Firefox: Settings > Privacy & Security > Cookies and Site Data > Clear Data.
Warning: When clearing browsing data, be careful not to tick "Passwords" or "Autofill data" unless you genuinely intend to wipe those too β cached files and saved logins are separate categories and it's easy to select both by accident.
Clearing Cache and Junk Files on macOS
macOS is more locked-down than Windows about letting you poke around system caches directly, but there's still plenty you can safely clear yourself.
- Open Finder, then press Cmd+Shift+G to open "Go to Folder".
- Type
~/Library/Cachesand press Enter β this is your user-level cache folder, safe to clear. - Open each subfolder (named after the app that created it) and delete the contents, not the folders themselves.
- Empty the Trash afterwards, since deleting doesn't free space until the Trash is emptied.
Using Built-In Storage Management
- Apple menu > System Settings > General > Storage > Manage.
- Use the Optimise Storage options: offload unused apps automatically, store files in iCloud and only keep recent ones locally, and empty the Trash automatically.
Clearing Downloads and Old Installers
Old .dmg installers are a huge, overlooked space hog on Mac. Open your Downloads folder, sort by file size (View > as List, then click the Size column), and delete installers you've already used β they serve no purpose once the app is installed.
Pro tip: Avoid third-party "cleaner" apps that promise to scan your whole Mac and delete gigabytes of junk automatically. Many are either bloatware themselves or delete files more aggressively than is safe. The built-in tools above cover 95% of what most people need.
Dealing With Big Individual Culprits
Sometimes the biggest space-wasters aren't caches at all:
- Downloads folders β check both Windows and Mac Downloads folders for forgotten ISO files, video files, or installer packages.
- Cloud sync folders (OneDrive, Dropbox, iCloud Drive, Google Drive) β these can silently keep a full local copy of everything even when you don't need offline access.
- Old System Restore points and shadow copies on Windows, which can be trimmed via Disk Cleanup > Clean up system files > More Options tab > System Restore and Shadow Copies.
- Hibernation file (
hiberfil.syson Windows) β several gigabytes reserved for hibernation; can be shrunk or disabled via Command Prompt withpowercfg /hibernate offif you never use hibernate. - Duplicate photo and video libraries, especially from old phone backups.
Keeping It Clean Going Forward
Freeing space is easy; keeping it free is the real win. A few habits make a big difference:
- Enable Storage Sense (Windows) or Optimise Storage (Mac) so cleanup happens automatically.
- Review your Downloads folder monthly rather than letting it become a second desktop.
- Uninstall apps you no longer use via Settings > Apps > Installed apps (Windows) or by dragging them to the Trash (Mac) β remembering that some leave residual folders in
AppDataor~/Library/Application Supportworth checking afterwards. - Consider an external drive or cloud storage for large media libraries you don't need instant access to.
Closing Thoughts
Clearing cache files is low-risk, high-reward maintenance that anyone can do without technical expertise β everything covered here is designed to be deleted and will simply be rebuilt by the relevant app next time it's needed. If you've worked through this guide and your drive is still nearly full, the next step is checking exactly what's using the space with a visual disk analysis tool, or considering whether it's time to upgrade to a larger SSD β a subject we cover elsewhere on the site.
Was this guide helpful? Explore more Speed & Performance guides, or browse all Operating System & Software articles.