How to fix temporary files taking up a lot of space on your computer

If your storage drive is constantly running out of space and you have no idea what's eating it up, check your temporary files. They can silently take up huge amounts of space, sometimes tens of gigabytes, without you even noticing.

 

The Easiest Way to Delete Temporary Files

Windows has a built-in Disk Cleanup utility  that helps you delete temporary files and other unnecessary files without deleting any important files. To launch the tool, click Start , type disk cleanup  , and open it from the search results.

How to fix temporary files taking up a lot of space on your computer Picture 1

Next, select your primary drive and click OK . The application will scan the selected drive for unwanted files and display all the files that you can safely delete. This includes temporary files, Windows Update cleanup, and thumbnails, which are selected by default. Otherwise, manually select the Temporary files option under Files to delete .

How to fix temporary files taking up a lot of space on your computer Picture 2

 

For a more thorough cleanup, click Clean up system files , select the drive, and click OK . This will show additional files like previous Windows installations and system error memory dumps. Also, unlike manual cleaning, Disk Cleanup won't delete any files currently in use by open applications.

After selecting the files, click OK and then click Delete files to confirm the operation.

You can also manually delete these files.

If Disk Cleanup doesn't delete temporary files, you can also delete temporary files manually. Press Windows + R , type %temp% , and press Enter to open your user's temp folder in File Explorer.

How to fix temporary files taking up a lot of space on your computer Picture 3

Press Ctrl + A to select all files, then press Delete . Windows will notify you if it cannot delete any files that are in use; just click Skip to continue.

There is another temporary folder at C:WindowsTemp that accumulates system-level temporary files. However, you will need admin rights to delete this folder. To delete the files, press Ctrl + A to select all, delete what you can, and skip any files you can't delete.

How to fix temporary files taking up a lot of space on your computer Picture 4

 

While the manual method allows you to force temporary files to be deleted, be cautious. Never delete files you are unsure of. Also, use known temporary locations like %temp% for user accounts and C:WindowsTemp for system files.

Do not delete the Prefetch folder , as deleting it will not free up any meaningful storage space. This folder contains data that Windows uses to speed up program launches, so deleting it may slow down application launches until Windows rebuilds the files.

Set up automatic temporary file cleanup with Storage Sense

In Windows 11 , you can set up automatic PC cleanup using Storage Sense . This Windows feature monitors your storage drives and deletes unnecessary files to free up space when enabled.

To enable this feature, go to Settings > System > Storage , then click Configure Storage Sense under Storage management . Now, select the Cleanup of temporary files option .

How to fix temporary files taking up a lot of space on your computer Picture 5

Next, turn on the Automatic User content cleanup switch . Also, choose how often you want Windows to run Storage Sense and whether to delete files in the Recycle Bin and Downloads folder. Leave the default/never if you're not sure.

 

You can exclude files from OneDrive that you haven't opened recently to free up space locally, while still being able to access them in the cloud. Storage Sense can also automatically handle those giant Windows Update files, deleting them after the 10-day Go back option expires and you can't undo the upgrade anymore.

Setting up Storage Sense takes just five minutes, but can save you hours of manual maintenance. It's especially useful if you're running Windows on a smaller SSD, where every gigabyte counts. It runs quietly in the background, only kicking in when the conditions you specify are met.

Cleaning up your PC for 10 minutes can save you from running out of storage space and having to delete files when you need them most. Whether you choose manual deletion, Disk Cleanup, or automatic Storage Sense, regularly deleting temporary files will help keep your PC running smoothly and give you more space on your drive.

See also:

  1. How to delete TSRs that start automatically when you turn on your computer
  2. Discover great free software
  3. What is Hiberfil.sys? How to delete Hiberfil.sys?
4 ★ | 1 Vote

May be interested

  • How to Clear up Unnecessary Files on Your PCHow to Clear up Unnecessary Files on Your PC
    the longer you have a pc, the more unnecessary, temporary, or duplicate files will accumulate on your disk. these files take up space that may cause your pc to run slower or take up space on your hard drive. by deleting or consolidating...
  • Free up hard drive space automatically on Windows 10 with Disk CleanupFree up hard drive space automatically on Windows 10 with Disk Cleanup
    disk cleanup is one of the 'maintenance' tools built into windows for a long time. this tool allows users to free up more space on the computer by 'cleaning up' the temporary files and the file system is almost no longer usable, but takes up quite a bit of space, unlike files. information to install and update previous windows versions.
  • How to clean up junk files to reduce disk space CHow to clean up junk files to reduce disk space C
    how to clean up junk files to reduce disk space c. after a long time using the computer, temporary files will generate junk files and take up hard disk space, sometimes they will make our computer work. no longer as smooth as before. we should correspond
  • Some tips to free up Windows 10 computer hard drive spaceSome tips to free up Windows 10 computer hard drive space
    as a habit, users often store a lot of files on a computer, even files that they never use. this is one of the invisible reasons that consumes hard drive space on a computer that users do not know.
  • Delete junk files, temporary files in WindowsDelete junk files, temporary files in Windows
    this document involves deleting .tmp files, not how to clear the internet history or browser cache.
  • How to Clear Temp Files in Windows 10How to Clear Temp Files in Windows 10
    windows 10 creates temporary files while you use certain apps (such as microsoft word) to improve your experience. however, your pc can create hundreds of temporary files in a day, which may fill up your hard drive. if you have a document...
  • How to Zip a File on a MacHow to Zip a File on a Mac
    if you have a lot of old documents and files taking up space on your computer, you can compress them into an archive to save space. mac os x allows you to compress files directly from the operating system. you can also download third-party...
  • How to Free Up Hard Drive Space (on Windows 7)How to Free Up Hard Drive Space (on Windows 7)
    in this article, tipsmake will show you how to free up hard drive space on a computer running the windows 7 operating system. you can use the built-in disk cleanup tool to remove temporary files and unwanted files. other unnecessary items or go to control panel to delete unused programs.
  • Automatically frees free space on Windows 10 after 30 daysAutomatically frees free space on Windows 10 after 30 days
    if you are facing a performance problem on your windows 10 computer, the computer is slow, ... the advice is to regularly clean up the junk files, empty the recycle bin. in fact, many users often clean up junk files on their computers in this way.
  • How to Free Up 48GB on Windows 11 PC Without Losing Any Important DataHow to Free Up 48GB on Windows 11 PC Without Losing Any Important Data
    between temporary files, outdated backups, duplicate data, and unused apps, there are plenty of ways to reclaim space without touching your personal files.