DEV Community

Bryz︱🦾
Bryz︱🦾

Posted on

💾 C: Drive Full Again? 3 Safe Fixes Before You Start Deleting Folders

"My computer says the disk is full." 😩

Every help desk tech hears it. And the worst move is panic-deleting folders until the red bar turns blue. Here's a calm, safe routine that frees real space without breaking Windows. 🚀

📏 Step 0: Check how bad it is

Get-Volume -DriveLetter C | Select-Object DriveLetter, @{n='FreeGB';e={[math]::Round($_.SizeRemaining/1GB,1)}}, @{n='SizeGB';e={[math]::Round($_.Size/1GB,1)}}
Enter fullscreen mode Exit fullscreen mode

Now you have a before number to compare against. 📊

🧹 Step 1: Clear the junk first

Open Settings > System > Storage > Temporary files and review what's safe to remove.

Or use classic Disk Cleanup:

cleanmgr /d C:
Enter fullscreen mode Exit fullscreen mode

Click Clean up system files to include old Windows Update leftovers. Want more? From an admin prompt, let Windows trim its own component store safely:

Dism /Online /Cleanup-Image /StartComponentCleanup
Enter fullscreen mode Exit fullscreen mode

⚠️ Never delete C:\Windows\WinSxS or anything in System32 by hand. Use the tools above.

🔍 Step 2: Find what's actually big

The Storage page shows usage by category. To find the real culprit in a user profile:

Get-ChildItem $env:USERPROFILE -Directory | ForEach-Object {
  $size = (Get-ChildItem $_.FullName -Recurse -File -ErrorAction SilentlyContinue | Measure-Object Length -Sum).Sum
  [PSCustomObject]@{ Folder = $_.Name; GB = [math]::Round($size/1GB,2) }
} | Sort-Object GB -Descending | Select-Object -First 10
Enter fullscreen mode Exit fullscreen mode

And to list single files over 1 GB:

Get-ChildItem $env:USERPROFILE -Recurse -File -ErrorAction SilentlyContinue |
  Where-Object Length -gt 1GB |
  Select-Object FullName, @{n='GB';e={[math]::Round($_.Length/1GB,2)}}
Enter fullscreen mode Exit fullscreen mode

Usual suspects: 📥 Downloads full of installers, 🎥 screen recordings on the Desktop, and 📧 old Outlook .pst files. Always confirm with the user before deleting anything personal.

☁️ Step 3: Let OneDrive hold it

If the user syncs with OneDrive, right-click a folder and choose Free up space. Files stay visible but live in the cloud until opened.

Then turn on Storage Sense (Settings > System > Storage) so Windows cleans temp files and the Recycle Bin automatically. ✅

🎯 Wrap-up

  1. Measure first 📏
  2. Clear junk with built-in tools 🧹
  3. Find the real space hog 🔍
  4. Offload to the cloud ☁️

Run the Step 0 command again and enjoy the before/after. 😎

What's the biggest space hog you've ever found on a user's PC? Drop it below 👇

Top comments (0)