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.

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.

You do not need third-party "PC cleaner" software. The methods in this guide use only built-in Windows tools and manual cleanup steps that are completely safe.

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

Step 1
Press Win + S and type Disk Cleanup, then click the result to open the tool.
Step 2
Select the drive you want to clean (usually C:) and click OK. The tool will take a moment to calculate how much space you can recover.
Step 3
Check the boxes next to the file categories you want to remove. Safe options include:
  • 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
Step 4
Click "Clean up system files" for additional options. This unlocks categories like Windows Update Cleanup and Previous Windows installations, which can free up significant space (sometimes 10 GB or more).
Step 5
Click OK, then confirm by clicking Delete Files. The cleanup process may take several minutes depending on how much data is being removed.
After running Disk Cleanup with the "Clean up system files" option, you may see a "Windows Update Cleanup" entry showing several gigabytes. These are old update files that Windows no longer needs, and they are safe to remove.

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

Step 1
Press Win + R to open the Run dialog.
Step 2
Type %temp% and press Enter. This opens the folder C:\Users\YourName\AppData\Local\Temp.
Step 3
Press Ctrl + A to select all files, then press Delete. If some files are "in use," click Skip for those files. It is completely normal for a few files to be locked by running programs.

Method 2: Clearing the Windows Temp Folder

There is a second temporary files folder that stores system-level temp files:

Step 1
Press Win + R, type temp (without the percent signs), and press Enter. This opens C:\Windows\Temp.
Step 2
Select all files and delete them. Again, skip any files that are currently in use.

Method 3: Using Windows 11 Settings

Windows 11 provides a modern interface for clearing temp files:

Step 1
Open SettingsSystemStorage.
Step 2
Click Temporary files. Windows will scan and show you exactly how much space each category of temp files is using.
Step 3
Check the boxes for the categories you want to remove, then click Remove files.
Do not check "Downloads" unless you are sure you no longer need anything in your Downloads folder. Unlike other temp file categories, this will permanently delete your downloaded 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

  1. Click the three-dot menu in the top-right corner and select Settings.
  2. Go to Privacy and securityDelete browsing data.
  3. Set the time range to "All time".
  4. Check "Cached images and files" (uncheck browsing history and cookies if you want to keep those).
  5. Click Delete data.

Clearing Cache in Microsoft Edge

  1. Press Ctrl + Shift + Delete to open the clear browsing data dialog directly.
  2. Set time range to "All time".
  3. Check "Cached images and files".
  4. 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.

Once you delete Windows.old, you cannot roll back to your previous Windows version. Only delete it if your PC is working correctly after the update and you are satisfied with the new version.

How to Delete Windows.old

You cannot simply delete this folder from File Explorer because it is protected. Use Disk Cleanup instead:

  1. Open Disk Cleanup and select the C: drive.
  2. Click "Clean up system files".
  3. Check "Previous Windows installation(s)".
  4. Click OK and confirm deletion.

Alternatively, in Windows 11: go to SettingsSystemStorageTemporary files. Check "Previous version of Windows" and click Remove files.

Windows automatically deletes the Windows.old folder after 10 days. If you need the space sooner, follow the steps above to remove it immediately.

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

Step 1
Open SettingsAppsInstalled apps.
Step 2
Click "Sort by: Size" to see which programs are using the most space.
Step 3
Click the three-dot menu next to any program you want to remove, then click Uninstall.

Common programs worth removing include:

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

The AppData folder is hidden by default. To see it, open File Explorer, click ViewShowHidden items (on Windows 11) or ViewHidden items checkbox (on Windows 10).

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

Step 1
Open SettingsSystemStorage.
Step 2
Toggle Storage Sense to On.
Step 3
Click Storage Sense to configure its settings:
  • 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.
Step 4
Click "Run Storage Sense now" to perform an immediate cleanup.
We recommend setting Storage Sense to run "Every week" with Recycle Bin cleanup set to 30 days. This keeps your system clean without requiring you to think about it.

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:

10. Frequently Asked Questions

Is it safe to delete temporary files?
Yes, it is completely safe to delete temporary files. These are files created by Windows and applications for short-term use and are not needed once the task is complete. If a file is currently in use, Windows will prevent you from deleting it, so you cannot accidentally break anything. Use the methods described in this guide (Disk Cleanup, %temp% folder, or Settings) to remove temp files safely.
How often should I clean up my PC?
For most users, running a manual cleanup once a month is sufficient. If you enable Storage Sense in Windows 11 and set it to run weekly, you can largely forget about manual cleanup. Users who install and uninstall software frequently, or who download a lot of files, may want to clean up every two weeks.
Will disk cleanup delete my personal files?
No. The built-in Disk Cleanup tool only removes system-generated files like temporary files, cached data, and update leftovers. It will never touch your documents, photos, music, or other personal files. The only exception is the Recycle Bin option, which clears files you have already deleted, and the Downloads option in Windows 11 Settings.
Can I use disk cleanup on Windows 11?
Yes. Disk Cleanup is available on Windows 11, though Microsoft has also added a newer interface through Settings → System → Storage → Temporary files. Both methods work well. The classic Disk Cleanup tool offers the "Clean up system files" option which can recover more space from Windows Update files and previous installations.
How do I free up space on my C: drive without deleting files?
If you have a second drive (D:, E:, or an external drive), you can move large folders like Documents, Downloads, and Videos to the other drive. In Windows 11, go to Settings → System → Storage → Advanced storage settings → Where new content is saved, and change the default save location for each file type. You can also enable OneDrive's "Files On-Demand" feature to keep files in the cloud and only download them when needed.