April 2026

What Files Can You Safely Delete on Windows to Free Up Space?

A full hard drive is one of the most common reasons Windows feels slow, and reclaiming space is easier than most people think — the challenge is knowing which files are safe to remove and which ones Windows actually needs. Delete the wrong thing and you can break your system; leave everything in place and your drive fills up with years of accumulated junk. This guide walks through every major category of deletable files, explains what each one is, and tells you the safest way to remove them.

TL;DR

Safe to delete: %TEMP% folder, C:\Windows\Temp, Recycle Bin, Downloads you no longer need, browser caches, old Windows Update files (via Disk Cleanup), hibernation file (if you disable hibernate), and Windows.old after a successful upgrade. Never manually delete: System32, WinSxS, Program Files, DriverStore, or pagefile.sys. Use Storage Sense and Disk Cleanup rather than deleting system files by hand.

Temporary files: %TEMP% and C:\Windows\Temp

Temporary files are created by applications and Windows itself during normal operation — installation wizards extract files here, applications cache data here, and system processes write logs here. Two locations accumulate the most junk: your user temp folder (type %TEMP% into the address bar of File Explorer to open it) and the system temp folder at C:\Windows\Temp. These folders are never automatically cleaned on most configurations and can grow to several gigabytes over months of use.

To clean them, press Win + R, type %TEMP%, and press Enter. Select all files (Ctrl + A) and delete them. Some files will refuse deletion because they are in use by a running application — just click "Skip" for those and delete everything else. Repeat the process with C:\Windows\Temp. You can also run this cleanup automatically through Storage Sense (Settings → System → Storage → Storage Sense) or via Disk Cleanup. Neither location contains anything irreplaceable — any file a running application needs will be recreated automatically.

Windows Update cleanup and SoftwareDistribution

Windows stores downloaded update packages in C:\Windows\SoftwareDistribution\Download. After updates install successfully, the original packages are no longer needed but are not always removed immediately. This folder can accumulate several gigabytes of orphaned update files. The safest way to clean it is through Disk Cleanup: search for Disk Cleanup in the Start menu, run it on the C: drive, click "Clean up system files," and check the "Windows Update Cleanup" option.

If you need to manually clear the SoftwareDistribution folder (for example, to fix a corrupted update cache), the correct procedure is to stop the Windows Update service first using net stop wuauserv in an elevated command prompt, delete the contents of the Download folder, then restart the service with net start wuauserv. Never delete files from SoftwareDistribution while Windows Update is actively running — this can corrupt the update metadata database and require a DISM repair to fix.

Recycle Bin, Downloads, and user data

The Recycle Bin holds files you have already deleted but not permanently removed. Right-click the Recycle Bin on your desktop and choose "Empty Recycle Bin" to free the space permanently. You can also configure the Recycle Bin to automatically limit its size by right-clicking it, choosing Properties, and setting a maximum size. Files in the Recycle Bin still consume disk space exactly as they did before deletion — they are simply hidden from their original location.

Your Downloads folder is often the single largest source of recoverable disk space on a typical PC. Installers, ZIP files, PDFs, and large media files pile up for years without ever being revisited. Sort the folder by Size (click the Size column header in File Explorer) to find the biggest items first, review them, and delete anything you no longer need. Move files you want to keep to an appropriate location rather than using Downloads as permanent storage. A Downloads folder review alone commonly recovers 5–20 GB on PCs used for several years.

Hibernation file and page file

The hibernation file hiberfil.sys is created by Windows in the root of your C: drive and sized to accommodate your total installed RAM. On a PC with 16 GB of RAM, hiberfil.sys occupies approximately 12–14 GB of disk space. If you do not use hibernate mode or Fast Startup, you can reclaim all of that space by opening an elevated command prompt and running powercfg /h off. Windows will delete the file immediately. Be aware this also disables Fast Startup.

The page file pagefile.sys is Windows' virtual memory file — it acts as an overflow buffer when physical RAM is full. You should not delete it unless you have 16 GB or more of RAM and are certain your workloads never approach that limit. Deleting the page file on a machine with insufficient RAM can cause application crashes and system instability. You can reduce its size through System Properties → Advanced → Performance Settings → Advanced → Virtual Memory, but setting it to zero is only appropriate on RAM-rich systems.

Browser caches, prefetch, and log files

Every major browser — Chrome, Edge, Firefox — maintains a disk cache of website assets to speed up repeat page loads. This cache can grow to several gigabytes and is completely safe to clear. In Chrome and Edge, press Ctrl + Shift + Delete, set the time range to "All time," check "Cached images and files," and click Clear. Browser caches rebuild automatically as you browse, so clearing them has no lasting downside beyond slightly slower first page loads for a day or two.

Windows Prefetch files at C:\Windows\Prefetch are small data files that help Windows predict which application files to load early during boot and app launch. They are safe to delete — Windows will recreate them within a few days of normal use — but deleting them provides minimal space savings (usually under 100 MB) and temporarily slows app launch speeds until the prefetch data rebuilds. Log files in C:\Windows\Logs can also be cleared to recover a small amount of space, though they are similarly modest in size and useful for troubleshooting if something goes wrong.

System Restore points and old user profiles

System Restore points are snapshots of your Windows system state that allow you to roll back to a previous configuration if something goes wrong. They are stored on your system drive and can consume 5–15 GB depending on how many are retained. You can manage them through System Properties → System Protection → Configure. Reducing the maximum disk usage for System Restore or deleting all but the most recent restore point is safe, but keep at least one recent point as a safety net.

Old user profiles from accounts that no longer exist on your PC can waste significant space. Navigate to C:\Users to see all user profile folders. If you see profiles belonging to accounts that have been deleted, you can remove the folder through Settings → Accounts or directly through System Properties → Advanced → User Profiles → Settings. Deleting a profile through the proper channel ensures Registry entries and associated data are cleaned up correctly rather than leaving orphaned files behind.

What NOT to delete

Several locations look like candidates for deletion but must never be touched manually. C:\Windows\System32 contains the core DLLs and executables Windows requires to function — deleting anything here will make the system unbootable or unstable. C:\Windows\WinSxS is the Windows Component Store; it appears enormous (often 10–20 GB) but much of what it reports is hard links to files that already exist elsewhere and are not actually occupying additional space. Use Disk Cleanup's "Windows Component Cleanup" option to safely reduce it.

C:\Program Files and C:\Program Files (x86) contain installed application files. Delete entries from these folders only by using the app's official uninstaller or through Settings → Apps. Manual deletion leaves Registry entries, file associations, and services behind, resulting in a broken partial installation. The C:\Windows\System32\drivers\DriverStore folder holds your driver packages — deleting from here can prevent hardware from working after a driver reinstallation. These folders should only ever be managed through Windows' own tools, never by hand in File Explorer.

FAQ

Is it safe to delete files in the Temp folder?

Yes. Files that are in use will refuse to delete — skip those and remove everything else. The %TEMP% folder and C:\Windows\Temp are completely safe to clear regularly. Any file an application needs will be recreated automatically.

Can I delete the Windows.old folder?

Yes, after confirming your new Windows version works correctly. Use Disk Cleanup → Clean up system files → Previous Windows installation(s). Do not delete it manually through File Explorer as permission errors may leave it partially intact.

What is hiberfil.sys and can I delete it?

It is the hibernation file, sized to your total RAM. Disable hibernation with powercfg /h off in an elevated command prompt to delete it and reclaim the space. Only do this if you do not use hibernate or Fast Startup.

How do I safely delete Windows Update files?

Use Disk Cleanup — search for it in Start, click "Clean up system files," and check "Windows Update Cleanup." Never manually delete files from C:\Windows\SoftwareDistribution while Windows Update is running as this can corrupt the update database.


Related: Free up disk space in Windows · Safe disk cleanup guide · Fix 100% disk usage