Purpose: Keep my dev machine running smoothly without performance issues
Last Updated: October 31, 2025
My Setup: Windows 11, WSL2/Ubuntu, Docker Desktop, Node.js development
-
Check disk space: Windows Settings β System β Storage
- β Goal: Stay under 75% full (< 715 GB / 954 GB)
β οΈ Warning: Over 80% = performance issues- π¨ Critical: Over 90% = system slowdown
-
Run Disk Cleanup:
1. Press Windows key 2. Type "Disk Cleanup" 3. Select C: drive 4. Click "Clean up system files" 5. Check: Temporary files, Delivery Optimization, Thumbnails, Previous Windows installations 6. Click OK -
Restart if needed: Check Task Manager β Performance β Uptime
- If uptime > 7 days, restart
-
Empty Recycle Bin
-
Clean Downloads folder:
C:\Users\mikeb\Downloads- Delete or move files to external drive
-
Review project folders:
- Look for old
node_modulesfolders (can be 500MB+ each) - Delete from old/abandoned projects
- Can always
npm installagain if needed
- Look for old
-
Uninstall unused programs:
- Settings β Apps β Installed apps
- Sort by size
- Remove anything you haven't used in 6+ months
-
Docker cleanup (if using Docker):
docker system prune -a --volumes
- Removes unused containers, images, and volumes
-
WSL/Ubuntu cleanup:
# Open Ubuntu terminal sudo apt autoremove # Remove unused packages sudo apt clean # Clear package cache # Check what's using space du -h --max-depth=1 ~ | sort -hr | head -20
-
Git cleanup (optional):
# In each project directory git gc --aggressive --prune=now -
Clear browser caches (if massive):
- Chrome: Settings β Privacy β Clear browsing data
- Edge: Settings β Privacy β Choose what to clear
Press: Ctrl + Shift + Esc
Look for:
- CPU tab: What process is using >50% CPU?
- Memory tab: Is RAM >90% used?
- Disk tab: Is disk at 100% usage?
- Startup tab: Disable unnecessary startup programs
Settings β System β Storage
- If >80% full, run Disk Cleanup
- If >90% full, find and delete large files immediately
Settings β Windows Update
- Install pending updates
- Restart if required
- Temporarily disable VPN
- Test if performance improves
- Some VPNs can slow things down
- Simple but effective
- Clears memory leaks
- Resets system processes
Settings β System β Storage β Click on C: drive β Show more categories
- Shows breakdown by category
- Can drill down into specific folders
1. Open File Explorer (Windows + E)
2. Navigate to C:\Users\mikeb\
3. In search box, click "Size" dropdown
4. Select "Gigantic (>128 MB)" or "Huge (16-128 MB)"
5. Sort by size
# Find largest folders in user directory
Get-ChildItem -Path C:\Users\mikeb -Directory -Recurse -ErrorAction SilentlyContinue |
ForEach-Object {
$size = (Get-ChildItem $_.FullName -Recurse -ErrorAction SilentlyContinue |
Measure-Object -Property Length -Sum).Sum
[PSCustomObject]@{
Path = $_.FullName
SizeGB = [math]::Round($size / 1GB, 2)
}
} | Sort-Object SizeGB -Descending | Select-Object -First 20- Total: 954 GB
- Sweet spot: < 715 GB used (75%)
- Warning zone: 760-860 GB (80-90%)
- Danger zone: > 860 GB (90%+)
-
WSL/Ubuntu disk (~135 GB)
- Docker images/containers
- Node projects with node_modules
- Build artifacts
-
Development projects (varies)
- Each node_modules: 200-800 MB
- Docker images: 500 MB - 2 GB each
- Build outputs
-
Crypto mining data (learned this the hard way! π )
- Old mining plots can be 100+ GB
- Always check before installing mining software
-
Downloads folder (varies)
- ISOs, installers, zip files pile up
- β Temporary files
- β Delivery Optimization files
- β Old Windows installations
- β Downloads folder (after reviewing)
- β node_modules from old projects
- β Docker images/containers not in use
- β Old crypto mining data
- β System files
- β Program Files folders
- β AppData (unless specific cleanup)
- β Active project files
# Check disk space
Get-PSDrive C
# Force empty Recycle Bin
Clear-RecycleBin -Force
# Optimize WSL disk (after shutting down WSL)
wsl --shutdown
Optimize-VHD -Path "$env:LOCALAPPDATA\Packages\CanonicalGroupLimited.Ubuntu20.04onWindows_*\LocalState\ext4.vhdx" -Mode Full# Check disk usage
df -h
# Find large directories
du -h --max-depth=1 ~ | sort -hr | head -20
# Clean package manager
sudo apt autoremove
sudo apt clean
# Find and remove old node_modules
find ~ -name "node_modules" -type d -prune
# Remove specific node_modules
rm -rf ./node_modules# See all images
docker images
# See all containers
docker ps -a
# Nuclear option - remove everything
docker system prune -a --volumes
# More conservative - remove stopped containers and unused images
docker system prune- Problem: PC super slow, everything lagging
- Cause: Disk at 93% full (886/954 GB)
- Solution: Found 289 GB of old crypto mining data + cleaned up projects
- Lesson: Check disk space monthly! Performance tanks above 80%
C:\Users\mikeb\post- 183 GB of crypto mining dataC:\Users\mikeb\cat-token-box- 106 GB (node_modules + docker stuff)- Ubuntu WSL - 135 GB (projects + docker)
- Set a monthly reminder - Add to calendar: "PC Maintenance Day"
- Before starting new projects - Check disk space first
- After finishing projects - Delete node_modules if not actively using
- Keep external drive handy - For archiving old projects
- Learn to use
ncdu- Better disk usage analyzer for Linuxsudo apt install ncdu ncdu ~
PC feels slow?
- Ctrl+Shift+Esc β Check Task Manager
- Settings β Storage β Check disk space
- Restart PC
- Still slow? Check this guide!
Monthly 5-minute routine:
- Check disk space (< 75%?)
- Run Disk Cleanup
- Restart if uptime > 7 days
- Empty Recycle Bin
Common fixes:
- Slow = Check disk space first!
- High CPU = Check Task Manager β End heavy processes
- Can't install = Probably out of disk space
- WSL slow = Clean up Docker + node_modules
Last major cleanup: October 31, 2025 Next scheduled: December 1, 2025