Over time, your Windows 11 computer accumulates a lot of digital clutter. Temporary files, cached data, old Windows installations, and more can take up valuable space, leading to a slower, less responsive system. Disk cleanup is an essential part of regular computer maintenance, and in this guide, we’ll walk you through the various methods to effectively clean your disk in Windows 11, reclaiming storage space and boosting your PC’s performance.
Understanding Disk Cleanup and Its Benefits
Disk cleanup is the process of removing unnecessary files from your computer’s hard drive or solid-state drive (SSD). These files include temporary internet files, downloaded program files, offline web pages, Recycle Bin contents, temporary Windows files, and previous Windows installations.
Regular disk cleanup offers several benefits:
- Frees up valuable disk space: More space for your documents, applications, and media.
- Improves system performance: A cleaner drive allows your computer to access data faster.
- Reduces system errors: Removing corrupted or conflicting temporary files can prevent crashes and freezes.
- Enhances privacy: Deleting temporary internet files and cookies can protect your online privacy.
Using the Built-in Disk Cleanup Tool
Windows 11 comes with a built-in Disk Cleanup tool that provides a straightforward way to remove common types of unnecessary files.
Accessing the Disk Cleanup Tool
There are several ways to access the Disk Cleanup tool in Windows 11:
- Using the Start Menu: Click the Start button, type “Disk Cleanup,” and select the Disk Cleanup app from the search results.
- Using File Explorer: Open File Explorer, right-click on the drive you want to clean (usually the C: drive), select “Properties,” and then click the “Disk Cleanup” button in the General tab.
- Using the Run Dialog Box: Press Windows key + R to open the Run dialog box, type “cleanmgr,” and press Enter.
Running a Basic Disk Cleanup
Once you have opened the Disk Cleanup tool, follow these steps:
- Select the Drive: If you have multiple drives, select the drive you want to clean from the dropdown menu and click “OK.”
- Choose Files to Delete: The Disk Cleanup dialog box will display a list of file types that can be removed. Check the boxes next to the file types you want to delete. You can click on each item in the list to see a description of the files that will be removed. Common choices include:
- Temporary Internet Files: Files downloaded by your web browser to speed up page loading.
- Downloaded Program Files: ActiveX controls and Java applets downloaded from the internet.
- Recycle Bin: Files you have deleted.
- Temporary Files: Files created by Windows and other programs.
- Thumbnails: Cached images used to display previews in File Explorer.
- Click OK: After selecting the file types, click the “OK” button to start the cleanup process. A confirmation message will appear, asking if you are sure you want to permanently delete these files. Click “Delete Files” to proceed.
Cleaning System Files
The basic Disk Cleanup tool doesn’t remove all unnecessary files. To clean system files, such as previous Windows installations and Windows Update files, you need to use the “Clean up system files” option.
- Open Disk Cleanup as described above.
- Click “Clean up system files”: In the Disk Cleanup window, click the “Clean up system files” button. You may be prompted to enter your administrator password or confirm your choice.
- Select the Drive (again): If you have multiple drives, select the drive you want to clean from the dropdown menu and click “OK.”
- Choose Files to Delete: The Disk Cleanup dialog box will now include additional file types, such as:
- Previous Windows installation(s): Files from your previous Windows installation. Deleting this will prevent you from rolling back to the previous version of Windows.
- Windows Update Cleanup: Files from Windows Update that are no longer needed.
- Windows upgrade log files: Log files created during Windows upgrades.
- Delivery Optimization Files: Files downloaded for Windows Updates that can be shared with other PCs on your network or the internet.
- Click OK: Check the boxes next to the file types you want to delete and click the “OK” button. Click “Delete Files” to confirm.
Using Storage Sense to Automate Disk Cleanup
Storage Sense is a feature in Windows 11 that can automatically clean up temporary files and manage storage space. It can be configured to run periodically or when your storage space is low.
Enabling and Configuring Storage Sense
To enable and configure Storage Sense:
- Open Settings: Click the Start button and select “Settings” (the gear icon).
- Go to System > Storage: In the Settings app, click on “System” in the left sidebar, and then select “Storage.”
- Turn on Storage Sense: Toggle the “Storage Sense” switch to the “On” position.
- Configure Storage Sense: Click on “Storage Sense” to configure its settings. You can customize the following options:
- Run Storage Sense: Choose how often Storage Sense should run (e.g., “Daily,” “Weekly,” “Monthly,” or “When disk space is low”).
- Delete temporary files that my apps aren’t using: Specify how often to delete temporary files in your Temp folder.
- Automatically clean up user content: Configure how long files should stay in your Recycle Bin and Downloads folder before being automatically deleted. You can choose from options like “Never,” “1 day,” “14 days,” “30 days,” or “60 days.”
Running Storage Sense Manually
Even if Storage Sense is enabled, you can run it manually to clean up your drive immediately:
- Open Settings > System > Storage.
- Click “Run Storage Sense now” under the “Run Storage Sense” section.
Deleting Large Files and Applications You No Longer Need
Sometimes, the best way to free up disk space is to simply delete large files and applications that you no longer use.
Identifying Large Files
Windows 11 doesn’t have a built-in tool to easily identify the largest files on your drive. However, you can use File Explorer or third-party tools to accomplish this.
Using File Explorer:
- Open File Explorer: Open File Explorer and navigate to the drive you want to analyze (usually the C: drive).
- Search for Large Files: In the search box in the upper-right corner, type “size:gigantic” to find files larger than 128 MB. You can also use other size keywords, such as “size:huge” (larger than 16 MB), “size:large” (larger than 1 MB), “size:medium” (larger than 128 KB), and “size:small” (smaller than 128 KB).
- Sort by Size: Right-click in the file list area and select “Sort by” > “Size.” This will arrange the files from largest to smallest, making it easier to identify the biggest space hogs.
- Examine and Delete: Carefully examine the list of large files and delete any that you no longer need. Be cautious when deleting files, as you could accidentally delete important system files or data.
Using Third-Party Tools:
There are many free and paid third-party disk space analyzers that can help you identify large files and folders. Some popular options include:
- WinDirStat: A free, open-source disk usage statistics viewer and cleanup tool.
- TreeSize Free: A free disk space manager that provides detailed information about file and folder sizes.
- SpaceSniffer: A free, portable tool that visualizes disk usage with a treemap diagram.
Uninstalling Unused Applications
Uninstalling applications that you no longer use is another effective way to free up disk space.
- Open Settings: Click the Start button and select “Settings” (the gear icon).
- Go to Apps > Installed Apps: In the Settings app, click on “Apps” in the left sidebar, and then select “Installed Apps”. Alternatively, on older versions of Windows 11, this might be labeled “Apps & features.”
- Sort by Size: Click the “Sort by” dropdown menu and select “Size (Large to Small)” to list the applications by their disk space usage.
- Uninstall Unwanted Apps: Select the application you want to uninstall and click the three vertical dots (the menu button) on the right side. Select “Uninstall” and follow the on-screen instructions.
Removing Temporary Files Manually
While Storage Sense and Disk Cleanup can remove temporary files automatically, you can also delete them manually for more control.
Deleting Files in the Temp Folder
The Temp folder is a common location for temporary files created by Windows and other applications. To delete these files:
- Open the Run Dialog Box: Press Windows key + R to open the Run dialog box.
- Type “%temp%” and press Enter: This will open the Temp folder in File Explorer.
- Select All Files: Press Ctrl + A to select all files and folders in the Temp folder.
- Delete the Files: Press the Delete key or right-click and select “Delete.” You may be prompted to provide administrator permissions.
- Skip Errors: Some files may be in use and cannot be deleted. Check the “Do this for all current items” box and click “Skip” to skip these files.
Deleting Temporary Internet Files
Temporary internet files, also known as cached files, are stored by your web browser to speed up page loading. To delete these files:
- Open Your Web Browser’s Settings: The steps to clear the cache vary depending on the browser you are using. Here are the instructions for some popular browsers:
- Google Chrome: Click the three vertical dots in the upper-right corner, select “More tools,” and then “Clear browsing data.”
- Mozilla Firefox: Click the three horizontal lines in the upper-right corner, select “Settings,” then “Privacy & Security,” and click “Clear Data” under the “Cookies and Site Data” section.
- Microsoft Edge: Click the three horizontal dots in the upper-right corner, select “Settings,” then “Privacy, search, and services,” and click “Choose what to clear” under the “Clear browsing data” section.
- Select Cached Images and Files: In the Clear browsing data dialog box, select the “Cached images and files” option. You may also want to clear other data, such as browsing history, cookies, and download history.
- Clear the Data: Click the “Clear data” or “Clear now” button to delete the temporary internet files.
Compressing Files and Folders to Save Space
If you have files or folders that you don’t use frequently but want to keep, you can compress them to save disk space. Windows 11 has a built-in compression feature that can compress files and folders individually or in bulk.
- Select the Files or Folders: In File Explorer, select the files or folders you want to compress.
- Right-Click and Select “Compress to ZIP file”: Right-click on the selected files or folders and select “Compress to ZIP file.”
- Choose a Name and Location: A new ZIP file will be created containing the compressed files. You can choose a name and location for the ZIP file.
Keep in mind that compressing files can take some time, especially for large files or folders. The amount of space saved will depend on the type of files being compressed. Text-based files generally compress better than image or video files.
Disabling Hibernation to Free Up Space
Hibernation is a power-saving mode that saves the contents of your computer’s memory to the hard drive, allowing you to quickly resume your work when you turn the computer back on. However, the hibernation file (hiberfil.sys) can take up a significant amount of disk space, especially if you have a large amount of RAM.
If you don’t use hibernation or rarely use it, you can disable it to free up disk space.
- Open Command Prompt as Administrator: Click the Start button, type “cmd,” right-click on “Command Prompt,” and select “Run as administrator.”
- Type “powercfg /hibernate off” and press Enter: This command will disable hibernation and delete the hiberfil.sys file.
- (Optional) Re-enable Hibernation: If you want to re-enable hibernation, open Command Prompt as administrator and type “powercfg /hibernate on” and press Enter.
Caution: Disabling hibernation means you won’t be able to use this power-saving mode. Your computer will only be able to sleep or shut down.
Moving Large Files to an External Drive or Cloud Storage
If you have many large files that you don’t want to delete but don’t need to access frequently, you can move them to an external hard drive or cloud storage service.
- External Hard Drive: Connect an external hard drive to your computer and copy the files to it. This is a good option for large files that you want to keep locally.
- Cloud Storage: Upload the files to a cloud storage service, such as OneDrive, Google Drive, or Dropbox. This is a good option for files that you want to access from multiple devices or share with others.
Before moving files, make sure you have enough space on the external drive or in your cloud storage account.
Defragmenting Your Hard Drive (HDD Only)
Defragmentation is the process of reorganizing the files on your hard drive to improve performance. Over time, files can become fragmented, meaning that they are stored in multiple locations on the drive. This can slow down your computer because the drive has to work harder to access the files.
Important Note: Defragmentation is only necessary for traditional hard disk drives (HDDs). It is not recommended for solid-state drives (SSDs), as it can reduce their lifespan. Windows 11 automatically optimizes SSDs using a different process called TRIM.
- Open Disk Defragmenter: Click the Start button, type “defragment,” and select “Defragment and Optimize Drives” from the search results.
- Select the Drive: Select the drive you want to defragment (usually the C: drive).
- Click “Optimize”: Click the “Optimize” button to start the defragmentation process. The process may take some time, depending on the size of the drive and the degree of fragmentation.
Windows 11 automatically defragments your hard drives on a regular schedule. However, you can manually defragment your drive if you notice a performance slowdown.
Keeping Your System Clean Moving Forward
Performing a disk cleanup is only half the battle. To keep your Windows 11 system running smoothly, it’s important to adopt good habits. Regularly use Storage Sense, delete unwanted files and apps, and be mindful of the files you download and store. By following these tips, you can keep your PC clean, optimized, and running at its best.
What types of files does Disk Cleanup remove, and are they safe to delete?
Disk Cleanup primarily targets temporary files, system cache, downloaded program files, offline web pages, and Recycle Bin contents. It also offers options to remove previous Windows installations and system error memory dump files, which accumulate over time and contribute to performance slowdowns. These files are generally safe to delete as they are either no longer needed by the system or can be easily recreated if necessary.
Deleting files through Disk Cleanup is a safe way to reclaim disk space. However, it’s advisable to review the selected file types before initiating the process. For instance, ensure the Recycle Bin only contains items you no longer need and that you understand the implications of removing system error memory dump files. If in doubt, uncheck a specific file type to avoid unintended data loss.
How do I access Disk Cleanup in Windows 11?
The most straightforward method to access Disk Cleanup in Windows 11 is through the Start Menu. Simply type “Disk Cleanup” in the search bar and press Enter. The Disk Cleanup application will then launch, presenting you with options to select the drive you want to clean.
Alternatively, you can access Disk Cleanup via File Explorer. Right-click on the drive you want to clean (typically the C: drive where Windows is installed) and select “Properties.” In the drive’s Properties window, click the “Disk Cleanup” button. This will open the same Disk Cleanup application, pre-selected for the chosen drive.
How often should I run Disk Cleanup on my Windows 11 PC?
The frequency of running Disk Cleanup depends largely on your computer usage and the size of your hard drive. If you frequently download files, install and uninstall programs, or browse the internet extensively, running Disk Cleanup once a month is a good practice to maintain optimal performance.
However, if you have a smaller SSD or HDD and notice your disk space dwindling quickly, you might consider running Disk Cleanup more frequently, perhaps every couple of weeks. Conversely, if you have ample storage and your usage is relatively light, you might only need to run it every few months. Regularly monitoring your disk space utilization is key to determining the ideal schedule.
Can I use Disk Cleanup to remove Windows Update files?
Yes, Disk Cleanup can remove Windows Update files, specifically previous Windows installations. After a major Windows update, the previous version of Windows is kept on your drive for a limited time in case you want to revert to it. However, these files can take up a significant amount of disk space.
The option to remove these files is typically labeled as “Previous Windows installation(s)” or “Windows Update Cleanup” in the Disk Cleanup window. Be aware that removing these files will prevent you from easily reverting to the older version of Windows, so only proceed if you are confident with the current version.
What’s the difference between Disk Cleanup and Storage Sense?
Disk Cleanup is a manual tool that you initiate to remove various types of unnecessary files. It’s been a part of Windows for many years and provides a straightforward interface for selecting specific file categories to delete, offering granular control over the cleaning process.
Storage Sense, on the other hand, is an automated feature in Windows 11 that periodically frees up disk space by deleting temporary files, Recycle Bin contents (if they’ve been there for a certain amount of time), and downloads that haven’t been opened for a while. It can be configured to run automatically on a schedule or when disk space is low, providing a hands-free approach to disk maintenance.
What is “Clean up system files” in Disk Cleanup, and when should I use it?
The “Clean up system files” button within Disk Cleanup allows you to perform a more thorough cleaning of your system drive. It requires administrative privileges and unlocks additional options, such as the ability to remove Windows Update files, service pack backup files, and other system-related temporary files that are not visible in the standard Disk Cleanup view.
You should use the “Clean up system files” option when you need to reclaim a significant amount of disk space and are comfortable potentially removing files related to system updates and installations. Be aware that removing these files may prevent you from uninstalling certain updates or reverting to a previous version of Windows.
Does Disk Cleanup defragment my hard drive?
No, Disk Cleanup does not defragment your hard drive. Disk Cleanup focuses solely on removing unnecessary files to free up disk space. Defragmentation is a separate process that reorganizes the files on a hard drive to improve read/write speeds and overall performance.
Windows 11 has a built-in tool called “Optimize Drives” (formerly known as Disk Defragmenter) for this purpose. You should run “Optimize Drives” regularly, especially if you’re using a traditional HDD (Hard Disk Drive). SSDs (Solid State Drives) are generally not defragmented in the same way, as it can shorten their lifespan. Windows automatically optimizes SSDs using a TRIM command instead.