Introduction / Why This Is Needed
Over time, Windows 11 accumulates a large number of temporary files, cache, unnecessary installed programs, and other data that takes up disk space and slows down the system. Regular cleanup helps:
- Free up space on the system drive (usually
C:\), which is especially important for SSDs with limited capacity. - Improve system responsiveness, as there is less fragmentation and disk load.
- Remove unnecessary background processes that may run silently.
In this guide, you will learn how to safely and effectively perform a complete cleanup of Windows 11 using built-in tools, without the risk of deleting critical data.
Requirements / Preparation
Before you begin, ensure that:
- You are logged in with administrator privileges.
- There is enough free space on the system drive (
C:\) to perform the operations (at least 1-2 GB). - It is recommended to create a system restore point (this will be the first step in the instructions).
- An internet connection is required for some features (e.g., to download updates or third-party utilities, but this guide uses only built-in tools).
Step 1: Create a Restore Point
Create a restore point so you can revert the system to a working state in case of an error.
- Open Control Panel (press
Win + R, typecontrol, and press Enter). - Go to System and Security → System → System Protection.
- On the System Protection tab, select the
C:drive (system) and click Create. - Enter a description, such as
Windows 11 Cleanup, and click Create.
Or use PowerShell as an administrator:
Checkpoint-Computer -Description "Windows 11 Cleanup"
⚠️ Important: Do not skip this step, especially if you are performing a deep cleanup for the first time.
Step 2: Clean Temporary Files via Windows Settings
Windows 11 provides a convenient interface for removing temporary files, Store cache, and other unnecessary data.
- Press
Win + Ito open Windows Settings. - Go to System → Storage.
- The system will automatically analyze disk usage. Click on Temporary files.
- In the window that appears, select the categories to delete:
- Temporary files (main category)
- Browser cache (if needed)
- Microsoft Store cache
- Previous Windows installations
- Click Delete files and confirm the action.
💡 Tip: If you see an item labeled "Files that can be deleted to free up space", be sure to review it—it may contain large files like old Windows updates.
Step 3: Use the "Disk Cleanup" Utility (cleanmgr)
The classic cleanmgr (Disk Cleanup) utility allows you to delete system files that are not visible in the storage settings.
- Press
Win + R, typecleanmgr, and press Enter. - If prompted to choose a drive, select the system drive (C:).
- In the Disk Cleanup window, click "Clean up system files" (requires administrator privileges). This will add additional options.
- Uncheck any files you want to keep (e.g., "Downloads" or "Documents" if they contain important data). Recommended for deletion:
- Temporary files
- Windows Update Cleanup
- Temporary Internet Files
- Recycle Bin
- Previous Windows installations
- Click OK and confirm the deletion.
Step 4: Remove Unnecessary Applications
Many pre-installed and manually installed programs take up space and can run in the background.
- Open Windows Settings (
Win + I). - Go to Apps → Installed apps.
- Sort the list by size (click the "Size" column header) to find the largest ones.
- For each application you do not use:
- Click the three dots on the right and select Uninstall.
- Follow the uninstall wizard instructions.
- Pay special attention to:
- Pre-installed apps from your PC manufacturer (e.g., trial antiviruses, utilities).
- Old games and programs you haven't launched in over a year.
⚠️ Important: Do not uninstall Microsoft apps (e.g., "Windows Store Client") and system components if you are unsure of their purpose.
Step 5: Configure "Storage Sense"
Enable automatic cleanup so Windows can delete temporary files on a schedule.
- In Windows Settings, go to System → Storage.
- Toggle the "Storage Sense" switch to on.
- Click "Configure Storage Sense" or "Storage Sense".
- Configure the settings:
- "Run Storage Sense" — select a frequency (e.g., "Monthly").
- "Delete temporary files that my apps aren't using" — enable.
- "Empty the Recycle Bin" — set a retention period (e.g., "After 30 days").
- "Delete files in the Downloads folder" — use with caution; only if you are sure nothing important is there.
- Click "Clean now" to run it immediately if needed.
Step 6: Additional Cleanup (Optional)
If disk space is still low after the previous steps, consider:
- Cleaning the
C:\Windows\Tempfolder: Open File Explorer, navigate to this path, and delete all files (some may be locked—skip those). - Clearing browser cache: Go into your browser's settings (Chrome, Edge, Firefox) and delete history, cache, and cookies.
- Deleting old restore points: In "System Protection" (see Step 1), click "Delete" to remove old points, keeping only the most recent.
Verify the Result
After completing all steps, verify that space has been freed:
- Open File Explorer, right-click on the
C:drive → Properties. Check the "Free space" value. - Or go back to Settings → System → Storage and review the usage chart.
- If you uninstalled many programs, restart your computer—this will free up memory occupied by temporary files from the removed programs.
Potential Issues
Problem: Insufficient permissions to delete certain files
Solution: Run Disk Cleanup (cleanmgr) and File Explorer as an administrator. Right-click the program and select "Run as administrator".
Problem: "File in use by another program" error when deleting
Solution: Close all open programs, especially browsers and office applications. If that doesn't work, restart your computer and try again.
Problem: System runs slower or shows errors after cleanup
Solution: Restore the system from the created restore point (Control Panel → Recovery). In the future, be careful when deleting system files—always leave checkboxes you don't understand.
Problem: Not enough space to complete the operation
Solution: Temporarily move large personal files (videos, archives) to an external drive or cloud to free up at least 2-3 GB on the system drive. You can move the files back after the cleanup.