How to Clean Up Your PC and Free Up Disk Space (2024 Guide)
Your Windows PC is running out of space? This complete guide walks you through every method to delete temporary files, remove junk files, and reclaim gigabytes of storage on your C: drive.
- Why Does Your PC Accumulate Junk?
- Using Windows Disk Cleanup Tool
- Deleting Temporary Files Manually
- Clearing Browser Cache and Downloads
- Removing Windows.old Folder Safely
- Uninstalling Unused Programs
- Deleting Leftover Files After Uninstall
- Using Storage Sense in Windows 11
- Tips to Prevent Junk Buildup
- Frequently Asked Questions
1. Why Does Your PC Accumulate Junk?
Every time you use your Windows PC, it generates files behind the scenes. Temporary files from software installations, cached data from your web browser, leftover files from updates, and log files from system processes all pile up over weeks and months. Before you know it, your C: drive is showing that dreaded red bar in File Explorer.
On a typical Windows 11 machine, junk files can consume anywhere from 5 GB to 30 GB of disk space. For users with smaller SSDs (128 GB or 256 GB), that wasted space can make the difference between a smooth-running system and one that constantly warns you about low storage.
The good news? Cleaning up your PC is straightforward and does not require any paid software. Windows has built-in tools that handle most of the heavy lifting. In this guide, we will walk through every reliable method to free up disk space, delete temporary files, and clean your C: drive safely.
2. Using Windows Disk Cleanup Tool
The Disk Cleanup utility has been part of Windows for decades, and it remains one of the most effective ways to free up space. It scans your drive for files that can safely be removed, including temporary internet files, system cache, thumbnails, and more.
How to Run Disk Cleanup on Windows 11
Disk Cleanup, then click the result to open the tool.
- Temporary Internet Files — cached web pages
- Temporary files — leftover files from programs
- Thumbnails — preview image cache
- Recycle Bin — files you have already deleted
- Delivery Optimization Files — Windows Update download cache
3. Deleting Temporary Files Manually
While Disk Cleanup catches most temporary files, some temp folders can accumulate files that the tool misses. Manually clearing these folders is safe and often frees up additional space.
Method 1: Using the %temp% Shortcut
%temp% and press Enter. This opens the folder C:\Users\YourName\AppData\Local\Temp.
Method 2: Clearing the Windows Temp Folder
There is a second temporary files folder that stores system-level temp files:
temp (without the percent signs), and press Enter. This opens C:\Windows\Temp.
Method 3: Using Windows 11 Settings
Windows 11 provides a modern interface for clearing temp files:
4. Clearing Browser Cache and Downloads
Web browsers store cached copies of every website you visit, including images, scripts, and stylesheets. Over months of browsing, this cache can grow to several gigabytes. Your Downloads folder is another common space hog, especially if you never clear out old installers and files.
Clearing Cache in Google Chrome
- Click the three-dot menu in the top-right corner and select Settings.
- Go to Privacy and security → Delete browsing data.
- Set the time range to "All time".
- Check "Cached images and files" (uncheck browsing history and cookies if you want to keep those).
- Click Delete data.
Clearing Cache in Microsoft Edge
- Press Ctrl + Shift + Delete to open the clear browsing data dialog directly.
- Set time range to "All time".
- Check "Cached images and files".
- Click Clear now.
Cleaning Your Downloads Folder
Open C:\Users\YourName\Downloads and sort files by date or size. Delete old installers (.exe, .msi files), completed downloads, and duplicate files. This alone can often free up 2-5 GB depending on your habits.
5. Removing Windows.old Folder Safely
After a major Windows update (like upgrading from Windows 10 to Windows 11, or a feature update), Windows keeps a copy of your old installation in the C:\Windows.old folder. This is meant to allow you to roll back if something goes wrong, but it can consume 10 to 20 GB or more.
How to Delete Windows.old
You cannot simply delete this folder from File Explorer because it is protected. Use Disk Cleanup instead:
- Open Disk Cleanup and select the C: drive.
- Click "Clean up system files".
- Check "Previous Windows installation(s)".
- Click OK and confirm deletion.
Alternatively, in Windows 11: go to Settings → System → Storage → Temporary files. Check "Previous version of Windows" and click Remove files.
6. Uninstalling Unused Programs
Over time, most PCs accumulate programs that were installed once and never used again. Trial software, old games, utilities you no longer need, and bloatware that came with your PC can all waste significant disk space.
How to Uninstall Programs on Windows 11
Common programs worth removing include:
- Old games you no longer play (these can be 20-50 GB each)
- Trial software that has expired
- Manufacturer bloatware (McAfee trial, Candy Crush, etc.)
- Old versions of software you have updated (e.g., old Office versions)
- Duplicate programs (two PDF readers, two media players, etc.)
7. Deleting Leftover Files After Uninstall
When you uninstall a program, it does not always remove everything. Configuration files, cache data, and user settings are often left behind in various locations. Here is how to clean up those leftover files:
Common Locations for Leftover Files
C:\Program FilesandC:\Program Files (x86)— Check for folders belonging to programs you have already uninstalled.C:\Users\YourName\AppData\Local— Application data and cache. Look for folders named after uninstalled programs.C:\Users\YourName\AppData\Roaming— User settings for programs. Safe to delete folders for uninstalled software.C:\ProgramData— Shared application data. Delete folders for software you have removed.
Cleaning the Registry (Optional)
Uninstalled programs may leave entries in the Windows Registry. While these do not take up significant disk space, they can clutter your system. We recommend using the built-in Disk Cleanup rather than third-party registry cleaners, as incorrect registry modifications can cause system instability.
8. Using Storage Sense in Windows 11
Storage Sense is a Windows 11 feature that automatically frees up disk space by removing files you do not need, like temporary files and items in the Recycle Bin. Think of it as an automatic version of Disk Cleanup that runs on a schedule.
How to Enable and Configure Storage Sense
- Run Storage Sense: Choose how often it runs (every day, week, or month, or only when disk space is low).
- Temporary files: Enable automatic deletion of temp files not used by apps.
- Recycle Bin: Set how long deleted files stay in the Recycle Bin before automatic removal (1, 14, 30, or 60 days).
- Downloads: Optionally auto-delete files in your Downloads folder that have not been opened in a set period.
9. Tips to Prevent Junk Buildup
Cleaning your PC is great, but preventing junk from accumulating in the first place is even better. Here are practical habits that keep your system lean:
- Enable Storage Sense and let it run weekly (see section above).
- Empty your Recycle Bin regularly. Right-click it on your desktop and select "Empty Recycle Bin."
- Clear your Downloads folder monthly. Move important files to organized folders and delete the rest.
- Uninstall software you no longer use immediately rather than letting it sit.
- Use cloud storage for large files like photos and videos. OneDrive, Google Drive, and Dropbox can offload files from your local drive.
- Save large files to a secondary drive if your PC has a second hard drive or external drive.
- Disable hibernation if you do not use it. The hibernation file (
hiberfil.sys) can consume several gigabytes equal to your RAM. Open Command Prompt as administrator and run:powercfg /hibernate off - Move your page file to a secondary drive if you have one, as it can consume 2-16 GB on your C: drive.
- Keep Windows updated to ensure old update files get cleaned up automatically.