Introduction
Is your computer running slower than usual? Do you see a dreaded “low disk space” warning every time you try to save a file? You’re not alone. Over time, every Windows PC accumulates temporary files, system cache, old downloads, and unnecessary data that clog up your hard drive and drag down performance.
The good news? You don’t need to purchase expensive third-party software or have technical expertise to fix this. Windows comes equipped with powerful built-in tools designed specifically to clean up your PC, free up storage space, and optimize performance. These native utilities are safe, effective, and completely free to use.
In this comprehensive tutorial, you’ll learn how to thoroughly clean your PC using Windows’ own maintenance tools. We’ll walk through Disk Cleanup, Storage Sense, Temporary Files removal, and Disk Defragmentation—all step-by-step with clear explanations of what each tool does and why it matters for your computer’s health.
By the end of this guide, you’ll have a faster, more efficient PC with significantly more free space—all accomplished using tools already installed on your system.
What You’ll Need Before You Start
Before diving into the cleanup process, make sure you have:
Required:
- A Windows PC (Windows 10 or Windows 11 recommended)
- Administrator access to your computer
- At least 30 minutes of uninterrupted time
- Your PC connected to power (not running on battery)
Optional But Recommended:
- A backup of important files (external drive or cloud storage)
- Pen and paper to note your “before” and “after” free space
- Latest Windows updates installed
Quick Setup Tips:
- Save and close all open programs before starting
- Ensure you’re logged in as an administrator
- Check your current free space: Open File Explorer > This PC to see available storage
- Disable any active antivirus scans temporarily to avoid conflicts
Step-by-Step Tutorial
Step 1: Run Disk Cleanup to Remove Temporary Files
Instruction: Disk Cleanup is Windows’ primary tool for removing unnecessary system files that accumulate over time.
- Press Windows key + S to open Search
- Type “Disk Cleanup” and click on the app that appears
- Select your main drive (usually C:) and click OK
- Wait while Windows calculates how much space you can free up
- In the Disk Cleanup window, check the boxes next to:
- Temporary Internet Files
- Downloaded Program Files
- Recycle Bin
- Temporary files
- Thumbnails
- Click OK, then Delete Files to confirm
Example: On a typical PC that hasn’t been cleaned in months, Disk Cleanup can free up 2-10 GB of space just from temporary files alone.
Tip: Don’t click “Clean up system files” just yet—we’ll do that in the next step for even deeper cleaning.
Step 2: Use Advanced Disk Cleanup for System Files
Instruction: The advanced version of Disk Cleanup removes larger system files like old Windows updates and upgrade logs.
- Open Disk Cleanup again (same method as Step 1)
- Select your C: drive and click OK
- This time, click the “Clean up system files” button at the bottom
- Select C: drive again and wait for recalculation
- Check these additional boxes:
- Windows Update Cleanup
- Previous Windows installations (if available)
- System error memory dump files
- Windows upgrade log files
- Click OK and confirm deletion
Example: Windows Update Cleanup alone can recover 1-15 GB, especially if you’ve recently upgraded to a new Windows version.
Tip: “Previous Windows installations” contains your old Windows version. Only delete this if you’re certain you won’t need to roll back. It typically uses 10-30 GB.
Step 3: Enable and Configure Storage Sense
Instruction: Storage Sense is an automated cleanup tool that runs in the background to keep your PC clean continuously.
For Windows 11:
- Press Windows key + I to open Settings
- Click System > Storage
- Toggle Storage Sense to On
- Click Storage Sense to configure settings
- Set “Run Storage Sense” to Every week or During low free disk space
- Under “Delete files in my recycle bin,” select 14 days
- Under “Delete files in my Downloads folder,” choose 30 days or Never (based on preference)
- Check “Delete temporary files that my apps aren’t using”
- Click Run Storage Sense now to clean immediately
For Windows 10:
- Press Windows key + I to open Settings
- Click System > Storage
- Toggle Storage Sense to On
- Click “Configure Storage Sense or run it now”
- Follow steps 5-9 above
Example: Once configured, Storage Sense works like an automatic housekeeper, preventing junk files from accumulating without you lifting a finger.
Tip: Be cautious about auto-deleting Downloads folder items. Many users store important files there temporarily. Consider setting it to “Never” if unsure.
Step 4: Manually Remove Temporary Files
Instruction: Some temporary files require manual removal from specific system folders.
- Press Windows key + R to open Run dialog
- Type %temp% and press Enter
- Press Ctrl + A to select all files and folders
- Press Delete (or Shift + Delete for permanent removal)
- If prompted that some files are in use, check “Do this for all current items” and click Skip
- Repeat this process with temp (without the % symbols) in Run dialog
- Empty your Recycle Bin by right-clicking it on desktop and selecting Empty Recycle Bin
Example: The temp folder can contain thousands of small files totaling several gigabytes, especially after Windows updates or software installations.
Tip: Don’t worry if some files won’t delete—these are actively being used by Windows or programs and are protected from deletion.
Step 5: Uninstall Unused Programs and Apps
Instruction: Remove software you no longer use to reclaim substantial storage space.
- Press Windows key + I to open Settings
- Click Apps > Installed apps (Windows 11) or Apps & features (Windows 10)
- Sort by Size to see which programs use the most space
- Review the list and identify programs you don’t use
- Click the three dots (•••) next to any unused app
- Select Uninstall and follow prompts
- Repeat for all unnecessary programs
Example: Games, creative software like Adobe products, and development tools often use 5-50 GB each. Removing just 2-3 unused programs can free up significant space.
Tip: Be cautious about uninstalling programs you don’t recognize—they might be important system utilities. When in doubt, search the program name online before removing it.
Step 6: Clear Browser Cache and Data
Instruction: Web browsers store massive amounts of cached data over time. Clearing this improves both PC performance and free space.
For Google Chrome:
- Open Chrome and press Ctrl + Shift + Delete
- Select All time from the time range dropdown
- Check: Browsing history, Cookies, Cached images and files
- Click Clear data
For Microsoft Edge:
- Open Edge and press Ctrl + Shift + Delete
- Select All time
- Check the same items as Chrome
- Click Clear now
For Firefox:
- Open Firefox and press Ctrl + Shift + Delete
- Select Everything from time range
- Check all items
- Click Clear Now
Example: Browser cache can easily accumulate 1-5 GB of data, especially if you stream videos regularly or visit many websites.
Tip: Clearing cache will log you out of websites and may make sites load slightly slower on first visit, but it’s worth the performance boost and space savings.
Step 7: Use Disk Defragmentation (HDD Only)
Instruction: If you have a traditional hard disk drive (HDD), defragmentation reorganizes data for faster access. Do NOT defragment SSDs.
- Press Windows key + S and search for “Defragment and Optimize Drives”
- Click the app to open it
- Select your C: drive
- Check the Media type column:
- If it says Hard disk drive, proceed with defragmentation
- If it says Solid state drive, skip to optimization instead
- Click Optimize button
- Wait for the process to complete (can take 30 minutes to several hours)
Example: Defragmenting a heavily fragmented HDD can improve file access speeds by 20-50%, making programs launch faster and files open quicker.
Tip: Windows 10/11 automatically optimizes drives weekly, but a manual optimization is helpful if you haven’t done it recently or notice sluggish performance.
Step 8: Optimize SSD with TRIM (SSD Only)
Instruction: If you have a Solid State Drive (SSD), use Windows’ optimization feature instead of defragmentation.
- Open “Defragment and Optimize Drives” (same as Step 7)
- Confirm your drive shows Solid state drive as Media type
- Select your C: drive
- Click Optimize button
- The process runs the TRIM command and completes in seconds
Example: TRIM helps maintain SSD performance and longevity by informing the drive which data blocks are no longer in use.
Tip: Never defragment an SSD—it provides no benefit and can reduce the drive’s lifespan. Always use the Optimize function instead.
Step 9: Disable Hibernation (Optional, Advanced)
Instruction: Hibernation saves your RAM contents to disk when you shut down. The hibernation file can use 4-16 GB depending on your RAM size. Disable it if you don’t use hibernate mode.
- Press Windows key + X and select Terminal (Admin) or Command Prompt (Admin)
- Type: powercfg -h off and press Enter
- Close the terminal window
- The hiberfil.sys file is now deleted, freeing up space
To re-enable hibernation later:
- Run the same command prompt as admin
- Type: powercfg -h on and press Enter
Example: On a PC with 16 GB of RAM, disabling hibernation immediately frees up approximately 12-16 GB of disk space.
Tip: Only disable hibernation if you always shut down or restart your PC rather than using hibernate or hybrid sleep modes. Laptop users who rely on long battery life may want to keep this enabled.
Step 10: Check Your Results and Schedule Regular Maintenance
Instruction: Verify your cleanup efforts and set up automatic maintenance to keep your PC running smoothly.
- Open File Explorer and click This PC
- Check the free space on your C: drive—compare it to what you noted before starting
- Note the difference in available storage
- To schedule automatic maintenance:
- Press Windows key + S and search for “Security and Maintenance”
- Click Maintenance dropdown
- Click “Change maintenance settings”
- Ensure “Allow scheduled maintenance to wake up my computer” is checked
- Set a convenient time (default is 2:00 AM)
- Consider setting a monthly calendar reminder to manually run these cleanup steps
Example: Most users see 5-50 GB of freed space after a thorough cleanup, with performance improvements noticeable immediately.
Tip: Make PC maintenance a monthly habit. Just like cleaning your home, regular small cleanups prevent major problems down the line.
Explaining the Why Behind Each Step
Why Disk Cleanup Matters
When you use your computer, Windows constantly creates temporary files to help programs run smoothly. These files are supposed to be deleted automatically, but many linger indefinitely. Over time, they consume gigabytes of storage without providing any benefit. Disk Cleanup identifies and safely removes these orphaned files, freeing up space without affecting your important documents or programs.
Why Storage Sense is Your Long-Term Solution
Manual cleanups are great, but Storage Sense automates the process so you never have to remember to do it. By enabling this feature, you’re essentially hiring a digital janitor that works 24/7 to keep your system clean. It’s particularly valuable because it prevents the problem before it becomes serious, rather than waiting until your disk is nearly full.
Why Browser Cache Accumulates So Quickly
Every website you visit stores images, scripts, and files on your computer so the site loads faster next time. While this improves browsing speed, months of accumulated cache from hundreds of websites can bloat to several gigabytes. Clearing it gives you a fresh start and often improves browser performance.
Why Defragmentation Helps HDDs (But Not SSDs)
Traditional hard drives store data magnetically on spinning platters. Over time, files get broken into fragments scattered across the disk, forcing the read head to jump around to access a single file. Defragmentation reorganizes these fragments into contiguous blocks, reducing seek time and improving performance. SSDs access data electronically with no moving parts, so fragmentation doesn’t affect their speed—making defragmentation unnecessary and potentially harmful.
Why Hibernation Files Are So Large
Hibernation saves your entire RAM contents to the hard drive so you can resume exactly where you left off after a full shutdown. If you have 16 GB of RAM, Windows needs approximately 75% of that (12 GB) for the hibernation file. While convenient, many users never actually use hibernate mode, making this a substantial waste of storage space.
Common Mistakes & How to Avoid Them
Mistake 1: Deleting System32 or Windows Folder
The Problem: Some online guides incorrectly suggest deleting the Windows or System32 folders to free up space. This will render your PC completely unusable and may require a full Windows reinstallation.
How to Avoid: Never delete folders directly from your C: drive unless you’re absolutely certain they’re safe to remove. Stick to the built-in cleanup tools covered in this tutorial—they’re designed specifically to identify safe deletions.
Mistake 2: Disabling System Restore to Save Space
The Problem: System Restore uses disk space to save restore points that can save you if something goes wrong. Disabling it to free up 5-10 GB might seem smart, but it eliminates your safety net.
How to Avoid: Keep System Restore enabled but limit its disk usage to 2-5% of your drive capacity. Go to System Properties > System Protection > Configure to adjust the allocation.
Mistake 3: Running Disk Cleanup While Programs Are Open
The Problem: Cleaning temporary files while programs are actively using them can cause errors, crashes, or data loss in unsaved work.
How to Avoid: Always close all programs before running cleanup tools. Save your work, close browsers, exit applications, and only then proceed with maintenance tasks.
Mistake 4: Defragmenting an SSD
The Problem: As mentioned earlier, defragmentation provides no benefit to SSDs and can actually reduce their lifespan by causing unnecessary write operations.
How to Avoid: Always check your drive’s Media Type in the Optimize Drives tool before proceeding. Use “Optimize” for SSDs (runs TRIM) and “Defragment” only for HDDs.
Mistake 5: Deleting “Previous Windows Installation” Too Soon
The Problem: After a Windows upgrade, you have 10 days to roll back to your previous version using the “Previous Windows Installation” backup. Deleting it immediately eliminates this option.
How to Avoid: Wait at least 30 days after a major Windows update before removing the previous installation. This ensures your new Windows version is stable and you won’t need to revert.
Advanced Tips & Alternative Methods
Create a Custom Cleanup Script
For power users who want automated, comprehensive cleaning:
- Open Notepad and paste this script:
@echo off
echo Running comprehensive PC cleanup...
cleanmgr /sagerun:1
del /q/f/s %TEMP%\*
del /q/f/s C:\Windows\Temp\*
echo Cleanup complete!
pause
- Save as PCCleanup.bat on your desktop
- Right-click and select Run as administrator whenever you need a quick cleanup
This script combines Disk Cleanup with temp folder cleaning in one click.
Use Windows Storage Settings for Deep Analysis
Windows 11’s Storage settings provide incredibly detailed breakdowns:
- Go to Settings > System > Storage
- Click on each category (Apps, Temporary files, Documents, etc.)
- You’ll see exactly what’s using space and can selectively delete items
- This visual approach helps identify space hogs you might otherwise miss
Schedule Cleanup Tasks with Task Scheduler
Make maintenance truly automatic:
- Search for and open Task Scheduler
- Click Create Basic Task
- Name it “Monthly PC Cleanup”
- Set trigger to Monthly on the first day
- Action: Start a program
- Browse to: C:\Windows\System32\cleanmgr.exe
- Add arguments: /sagerun:1
- Finish and provide admin credentials if prompted
Now Disk Cleanup runs automatically every month without you remembering.
Consider Third-Party Tools for Specialized Cleaning
While Windows tools are excellent, some specialized utilities offer additional features:
- CCleaner (free version): More aggressive temporary file removal and registry cleaning
- TreeSize Free: Visual representation of what’s using disk space
- WinDirStat: Colorful treemap view of your file system to identify large files
Important: Only download these from official websites, and be cautious during installation as some bundle unwanted software.
Move Files to Cloud Storage or External Drives
Prevention is better than cleanup:
- Use OneDrive, Google Drive, or Dropbox for documents and photos
- Move large media files (videos, music collections) to an external USB drive
- Enable “Files On-Demand” in OneDrive to keep files in the cloud but accessible through File Explorer
- This approach keeps your primary drive lean while maintaining access to all files
Conclusion
Congratulations! You’ve successfully learned how to clean up your PC using only Windows’ built-in tools. By following these steps, you’ve likely freed up anywhere from 5 to 50+ GB of storage space, improved your system’s performance, and established maintenance routines that will keep your PC running smoothly for years to come.
The beauty of these built-in tools is that they’re free, safe, and designed specifically for Windows—no need for third-party software that might come with hidden costs or privacy concerns. You’ve mastered Disk Cleanup for one-time deep cleans, Storage Sense for ongoing automatic maintenance, manual temp file removal for those stubborn remnants, and proper drive optimization whether you have an HDD or SSD.
Key Takeaways:
- Regular maintenance prevents major performance issues
- Windows provides all the tools you need built right in
- Automated features like Storage Sense make maintenance effortless
- Understanding why each step matters helps you make informed decisions about your PC’s health
Practice Makes Perfect
Don’t wait until your PC is crawling to perform these steps. Set a monthly reminder to run through this checklist, and you’ll maintain peak performance year-round. Experiment with the advanced tips as you become more comfortable, and you’ll develop a maintenance routine perfectly tailored to your needs.
What’s Next?
Now that your PC is running smoothly, consider exploring these related tutorials:
- How to optimize Windows startup programs for faster boot times
- How to manage Windows updates for better performance
- How to create system restore points and backups
- How to upgrade your PC’s RAM or storage drive
Keep your system clean, and it will serve you well for years to come!
