Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

How to Get Rid of Junk and Temp Files on Windows 10

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Over time, Windows 10 accumulates temporary files, cache data, and leftover junk that can eat up valuable disk space and slow down your system. This guide walks you through safe, built-in methods to clean these files without third-party software, freeing up space and improving performance. You'll need a Windows 10 PC and an administrator account for some steps.

What You'll Need

  • A Windows 10 PC with an administrator account (for full cleanup)
  • At least 5–10 minutes of time
  • An internet connection (optional, for Windows Update cleanup)

Step-by-Step

  1. Open Disk Cleanup (the classic tool). Click the Start button, type Disk Cleanup, and press Enter. This opens the original utility that's still effective for basic junk removal.
  2. Select the drive to clean. Usually, this is your C: drive (where Windows is installed). If prompted, choose the drive and click OK.
  3. Let Disk Cleanup scan. It will calculate how much space you can free up. This may take a minute.
  4. Review the file categories. In the list, you'll see items like Temporary Internet Files, Recycle Bin, and Thumbnails. Check the boxes for what you want to delete. If unsure, leave the defaults—they're safe.
  5. Click “Clean up system files.” This button (at the bottom left) re-runs the scan with administrator privileges, showing additional categories like Windows Update Cleanup, Delivery Optimization Files, and Previous Windows Installation(s). Select these if you don't need to roll back a Windows update.
  6. Confirm and delete. Click OK, then “Delete Files.” The tool will remove the selected items. This can take a few minutes.
  7. Use Storage Sense (the modern way). Go to Settings (Win + I) → System → Storage. Turn on Storage Sense if it's off, then click “Configure Storage Sense or run it now.”
  8. Set Storage Sense to run automatically. Choose how often it runs (e.g., “During low free disk space”) and check the boxes for temporary files and the Recycle Bin. You can also click “Clean now” to run it immediately.
  9. Manually clear the Temp folder. Press Win + R, type %temp%, and press Enter. This opens the user's temporary folder. Select all files (Ctrl + A) and delete them. If some files are in use, skip them (Windows will tell you).
  10. Clear the Windows Temp folder. Press Win + R, type temp (without the % signs), and press Enter. This opens the system temp folder. Delete everything you can. You may need admin permission; click “Continue” if prompted.
  11. Empty the Recycle Bin. Right-click the Recycle Bin icon on your desktop and choose “Empty Recycle Bin.” This permanently removes deleted files, freeing space.
  12. Check for large files. In Settings → System → Storage, click “Temporary files” to see a detailed breakdown. You can also use “Show more categories” to see apps, games, and other large items.

Common Mistakes

  • Deleting files in use: Some temp files are locked by running programs. Skipping them is fine; they'll be cleaned next time.
  • Using third-party “cleaners” that promise miracles: These often cause more harm than good, removing needed files or slowing your PC.
  • Ignoring the “Clean up system files” button: Many users miss this, leaving behind huge Windows Update leftovers.
  • Clearing the Windows.old folder without thinking: If you upgraded to a new Windows version, this folder lets you go back. Only delete it when you're sure you don't need to roll back.

Tips

  • Run Disk Cleanup monthly: Regular cleaning prevents junk from piling up.
  • Use Storage Sense to automate: Set it to run weekly or when disk space is low.
  • Clear browser caches: In Edge, Chrome, or Firefox, use the browser's own “Clear browsing data” to remove temporary internet files.
  • Uninstall unused apps: Go to Settings → Apps → Apps & features and remove programs you no longer use.
  • Keep your system updated: Windows updates often include improvements that reduce junk accumulation.

Troubleshooting

  • Disk Cleanup hangs or takes forever: Close other programs, then try again. If it still hangs, restart your PC and run it in Safe Mode (press Shift + Restart from the Start menu, then choose Troubleshoot → Advanced options → Startup Settings → Restart → 4).
  • “Clean up system files” doesn't show: Make sure you're running Disk Cleanup as administrator. Right-click the Start button, select “Windows PowerShell (Admin)” or “Command Prompt (Admin),” then type cleanmgr and press Enter.
  • Temp folder won't delete some files: This is normal. Those files are in use. Close all programs and try again. If the issue persists, reboot and try again.
  • Storage Sense says “0 bytes” but you know there's junk: Sometimes the scan is quick and misses files. Run Disk Cleanup as a fallback.
  • After cleaning, disk space didn't increase much: The biggest space hogs are often apps, games, and media files, not temp files. Check your storage settings to see what's using the most space.

Frequently Asked Questions

Is it safe to delete all files in the Temp folder?

Yes, generally. Windows uses the Temp folder for temporary files that are not needed after the program closes. If a file is in use, Windows will skip it. You can safely delete the rest.

What is the difference between Disk Cleanup and Storage Sense?

Disk Cleanup is the older, manual tool. Storage Sense is the newer, automated feature in Settings that can run on a schedule. Both clean similar items; Storage Sense is more user-friendly.

Will cleaning junk files speed up my PC?

It can help if you're low on disk space, as Windows needs free space for virtual memory and updates. However, if your PC is slow due to a weak CPU or low RAM, cleaning junk won't fix that.

How often should I clean temp files?

Once a month is a good rule of thumb. If you install/uninstall many programs or download lots of files, you might want to do it more often.

Can I delete the Windows.old folder?

Yes, but only if you're sure you don't want to go back to your previous Windows version. It can take up 10–20 GB. Use Disk Cleanup's “Previous Windows Installation(s)” option to remove it safely.

Do I need third-party cleaner software?

No. Windows built-in tools are sufficient for most users. Third-party cleaners often include bundled software or make unnecessary changes.