Windows Disk Cleanup: how to free up C: drive space safely
By Bhavik · Sources checked September 19, 2026
Start with a storage analysis
Before deleting anything, find out which categories and folders are actually using space. Windows Storage settings show broad categories such as apps, temporary files and system files. A disk space analyzer can go further by showing the folders and files behind those totals, including developer storage that Windows groups together.
SpaceFree scans the drive and breaks down WSL2 virtual disks, Docker data, package caches, project builds, Git repositories and other developer storage so you can see what is worth investigating before cleanup. Download SpaceFree.
Use Disk Cleanup on Windows 10 and 11
Windows Disk Cleanup is a built-in system cleanup tool. Search for Disk Cleanup from the Start menu, choose the C: drive, select the categories you understand, and review the estimated space before confirming. Microsoft documents the tool and the kinds of temporary system files it can remove (Disk Cleanup in Windows).
Check Windows Storage settings
Open Settings, then System and Storage, to see how the C: drive is divided. Temporary files can often be removed there, and Storage Sense can automate selected cleanup tasks. Microsoft explains these options in its guide to freeing drive space in Windows (free up drive space).
Storage settings are useful for a quick system cleanup, but they may not explain why a WSL2 or Docker virtual disk is still large after files are deleted. For those cases, use the focused WSL2 disk guide and Docker Desktop guide.
Clean the largest safe categories
Common cleanup targets include temporary files, unused installers, old build output, package caches and unused Docker images. Package caches are usually rebuildable, but clearing them means the next install downloads the packages again. See how to clear npm, pip and NuGet caches for the official commands.
WSL2 and Docker need an extra step: deleting data inside a virtual disk frees space inside that disk, but the .vhdx file on Windows may not shrink automatically. Compact the virtual disk only after stopping the relevant services and taking a backup; the WSL2 guide explains the documented process.
What not to delete blindly
- Do not delete files from Windows' system folders just because a folder is large.
- Do not remove Docker volumes without checking for databases or other persistent data.
- Do not manually edit WSL files inside AppData; use the documented WSL commands and compaction steps.
- Do not clear a project or package cache while a build, installer or development tool is using it.
A safer workflow
Measure the C: drive first, identify the largest category, confirm what created it, then clean one category at a time. Check the free-space total afterwards and keep a backup for data that cannot be recreated. SpaceFree labels scan results as safe to delete, rebuildable or not cleanable before cleanup, so you can review the decision instead of guessing.