Cleaning your hard drive in Windows 10 frees up storage space, speeds up your PC, and helps avoid “Low Disk Space” warnings. This guide walks you through built-in tools like Disk Cleanup, Storage Sense, and manual file removal—no third-party software needed. Before you start, make sure you’re logged in as an administrator, and close any programs that might be using files you plan to delete.
What You’ll Need
- A Windows 10 PC with an administrator account
- Optional: an external drive or cloud storage for files you want to keep
Step-by-Step
- Open Disk Cleanup. Click the Start button, type Disk Cleanup, and press Enter. If you have multiple drives, select the one you want to clean (usually C:) and click OK.
- Let it scan. Disk Cleanup will calculate how much space you can free. Wait for the progress bar to finish.
- Select file categories. In the list, check the boxes for items you want to delete. Common safe choices include Temporary Internet Files, Recycle Bin, Thumbnails, and Delivery Optimization Files. Be cautious with Downloads—this deletes your downloaded files. When done, click OK and then Delete Files to confirm.
- Clean up system files. For deeper cleaning, click Clean up system files in the Disk Cleanup window. It will rescan. Now you can also remove Windows Update Cleanup, Previous Windows Installation(s), and System Restore and Shadow Copies (except the most recent). Select what you want and click OK.
- Use Storage Sense. Go to Settings (Win + I) > System > Storage. Turn on Storage Sense if it’s off. Click Configure Storage Sense or run it now to set automatic cleanup rules (like deleting temp files or emptying Recycle Bin after a set number of days), or click Clean now to run it immediately.
- Uninstall unused apps. Go to Settings > Apps > Apps & features. Sort by size (click the “Sort by” dropdown and choose Size). Review large apps you no longer use, select one, and click Uninstall. Confirm the prompt.
- Delete large files manually. Open File Explorer and navigate to your Downloads, Documents, and Desktop folders. Sort by size (click the Size column header). Delete files you don’t need, or move them to an external drive or cloud. Empty the Recycle Bin afterward.
- Clear temporary files manually. Press Win + R, type
%temp%and press Enter. Select all files (Ctrl + A) and delete them. Skip files that are in use. Also checktemp(without the %) in the same way. - Disable Hibernation (if you don’t use it). Open Command Prompt as administrator (right-click Start > Windows PowerShell (Admin) or Command Prompt (Admin)). Type
powercfg /h offand press Enter. This removes the hiberfil.sys file, which can be several GB. Note: this disables Fast Startup and hibernation—only do this if you don’t use those features. - Run Disk Cleanup from the command line (optional). For a one-time deep clean, open Command Prompt as administrator and type
cleanmgr /sageset:1thencleanmgr /sagerun:1. This lets you select all categories and runs the cleanup.
Common Mistakes
- Deleting the wrong files. Be careful with “Downloads” and “Documents” in Disk Cleanup—they contain your personal files. Always check the folder contents first.
- Not cleaning system files. Many users skip the “Clean up system files” button, missing out on Windows Update leftovers that can be several GB.
- Deleting System Restore points. Removing all restore points except the latest is fine, but deleting all of them removes your ability to roll back to a previous state. Keep at least one.
- Ignoring the Recycle Bin. Files you delete still occupy space until you empty the Recycle Bin. Do this after any manual deletion.
- Using third-party cleaners unnecessarily. Built-in tools are safe and sufficient. Some third-party cleaners can remove needed files or slow down your PC.
Tips
- Run Disk Cleanup monthly. Set a reminder to keep your drive from filling up.
- Move large media to an external drive. Videos and photos are usually the biggest space hogs.
- Use cloud storage. OneDrive (built into Windows) can free up space by making files “online-only”—right-click a file in File Explorer and choose “Free up space.”
- Check the size of your WinSxS folder. It’s normal for it to be large; don’t delete it manually. Use Disk Cleanup to safely reduce it.
- Keep your SSD healthy. If you have an SSD, avoid defragmenting it. Windows 10 automatically uses TRIM instead, which is fine.
Troubleshooting
- Disk Cleanup doesn’t open or free space. Try running it as administrator. If it still fails, restart your PC and try again. If the scan is stuck, close other programs and wait.
- “Clean up system files” is grayed out. Make sure you’re logged in as an administrator. If you are, try restarting and reopening Disk Cleanup.
- Storage Sense doesn’t run automatically. Check that it’s turned on and that you’ve configured the settings. Also ensure your PC is not in battery saver mode, which can delay automatic cleanups.
- Files are in use and can’t be deleted. Close the program using the file, or restart your PC and try again. If it’s a system file, don’t force it—use Disk Cleanup instead.
- Hibernation file won’t disable. Run Command Prompt as administrator and try again. If you don’t see the option, your PC may have Fast Startup enabled—disabling hibernation also disables Fast Startup, which is expected.
- Not enough space freed. If you still need more space, consider moving large folders (like Videos or Downloads) to another drive. You can also use the “Free up space now” feature in Settings > System > Storage.
Frequently Asked Questions
Is it safe to delete all temporary files?
Mostly yes. Temporary files are meant to be deleted. However, if a program is currently using a temp file (e.g., an open document), Windows will skip it. You can safely delete all that are not in use.
How often should I clean my hard drive?
Once a month is a good routine. If you download a lot or install many programs, you might need to do it more often. Storage Sense can automate it.
Will cleaning my hard drive speed up my PC?
It can, especially if your drive was nearly full. A drive with less than 10% free space can slow down significantly. Cleaning frees up space and reduces fragmentation (on HDDs).
What is the difference between Disk Cleanup and Storage Sense?
Disk Cleanup is a manual tool that scans for specific file categories. Storage Sense is a newer feature that can run automatically, cleaning temp files and emptying the Recycle Bin on a schedule. Both are built-in and safe.
Can I delete the Windows.old folder?
Yes, if you no longer plan to roll back to a previous Windows version. Use Disk Cleanup > Clean up system files > Previous Windows Installation(s) to remove it safely.
Why is my hard drive full after cleaning?
Some files, like system restore points and the pagefile, are hidden and can be large. Check if hibernation is enabled (it uses a file equal to your RAM size). Also, large apps or media files may still be present—review your installed apps and personal folders.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- Install Android Apps on SD Card: Full Guide
- Why Is My Standby Red on iPhone? Fixes
- Fix Error 0x800703e6: 5 Working Methods
- How to Use Multiple Desktops on Mac (Spaces Guide)
- How to Alter Galaxy Note 8 Text Message App
- Set iPhone Media Volume Limit: Step-by-Step