How to Free Up Storage Space in Windows

Windows • Ryder Cragie • 30th September 2022Article Short Link: Ryder.link/storage

Disclaimer

This article includes steps on how to delete temporary files. Although temporary files shouldn't contain any personal data or documents, I am not responsible or liable for any data loss that may occur. Follow these steps at your own risk.

Introduction

If your Windows PC is low on storage space, here's how to free it up by removing unnecessary and temporary files.

Install Any Pending Windows Updates

The first thing you should do is install any pending Windows updates. These update files, once downloaded, can take up quite a bit of space on your machine. Installing these updates will give you that space back.

Windows will then look through the update files downloaded to your machine, and show all of the updates currently available to install.

Delete Personal Files You No Longer Need

If you're not very organised, your PC has probably accumulated quite a bit of junk including old Documents, Downloads and Desktop items. As simple as it sounds, you may be surprised at how much you have lying around that you haven't looked at in a long time. Go through your files and delete what you no longer need.

A useful tool to find large items on your computer is TreeSize. This shows you all files on your machine in order from smallest to largest. Removing system files you do not know the meaning of may cause issues in Windows, requiring a Disk Check or a factory reset to resolve, so proceed with caution and try to avoid removing system files if you are unsure about their purpose.

The folder paths I recommend going through are as follows. Copy and paste them into the path bar at the top of File Explorer.

Temporary Files

What are Temporary Files?

Temporary files can be created for many reasons. For example, when you download, install and set up an app, temporary files are created to allow this process to complete. However, after this process is complete, these files don't always get removed. Although they are called "temporary files", Windows doesn't have a rule on what duration of time it takes for the files to be deleted, so these files can accumulate over time and take up quite a lot of storage space - unless the relevant app developer implements a method of automatically deleting the files after use.

Even after deleting these files, they will reaccumulate over time as you use apps and perform other activities on your computer - so I recommend deleting these temporary files at least once every three months. Temporary files typically aren't needed after use, however, if they are they will be recreated.

Delete Temporary Files

OneDrive Offline Mode

What is OneDrive Offline Mode and Online Only Mode?

Changing to Online Only Mode

The mode can be changed in one of two ways.

Search Indexing

What is Windows Search Indexing?

When you search for a file or program on your computer, you are searching through a locally stored index database file stored at %ProgramData%\Microsoft\Search\Data\Applications\Windows\Windows.db. The index contains information like filenames, file extensions, file locations, , file sizes and dates. Without an index, searching would take a while.

Sometimes this index can become corrupt or too large, so you may need to lower the amount of files that are indexed or rebuild it altogether.

Remove Items From The Windows Search Index

Rebuild The Windows Search Index

If removing items from the Windows Search Index did not free up enough space, you can use TreeSize to navigate to %ProgramData%\Microsoft\Search\Data\Applications\Windows\Windows.db to see how much space the index is taking up in relation to the size of your drive.

If the file size is too large, you can see if rebuilding the index helps.

The index will now be in the process of being rebuilt. Depending on how many files are selected for indexing, this process could take a while. You can monitor the progress in Control Panel.

Disk Clean-up Tool

The Disk Clean-up application will automatically close when the process is complete.

Storage Sense Settings

Conclusion

Hopefully, this helped you get some space back! If not, maybe you need a bigger hard drive or SSD. I also advise rebooting your PC after following these steps. For further help, please see the official Microsoft documentation.