How to Delete Temporary Files on Windows 10/11 (Tutorial) (2023)

You may be surprised to know that your Windows operating system and the applications that run on your computer generate temporary files.

This article is meant to help you understand what these temporary files are used for and how they may impact the performance of your computer and the capacity of your internal hard disk.

đź’ŻWe will show you how to delete temporary files in Windows 11 as well as other versions of the OS, to help keep your machine running at peak efficiency.

What are Temporary Files?

How to Delete Temporary Files on Windows 10/11 (Tutorial) (1)

In the Windows operating system, temporary files are created both by the OS itself and many of the applications running on your computer.

Many of Windows’ temporary files are denoted with a file type of .tmp or are prefaced with a tilde (~). Most of the temporary files that are created end up in the Windows Temp folder.

They are used for a variety of reasons including:

  • Operating system requirements such as providing space for virtual memory.
  • Work files for applications that hold data while the program is running.
  • Files created as backups for works in progress such as Microsoft office creates for open documents.

As their name implies, temporary files are meant to temporarily address an issue. After their usefulness has ended, under ideal circumstances they are deleted by the process that created them. However, this is not always the case, and temporary files can remain on your hard drive long after they are no longer needed.

Why Should I Remove Temporary Files?

There are two main reasons to clear out the temp files in Windows 11 or any version of Windows for that matter. They are:

💽 Regaining storage space – Temporary files can end up taking up a lot of storage space. Over time, they can accumulate and represent a significant percentage of your disk’s storage. Removing temporary files which are no longer needed gives you more space for the important data that you need to store.

💡Improving computer performance – Temporary files that are needed by Windows or other applications can negatively impact your computer’s performance as they grow larger.

Loading and searching these large files can slow down your computer and the applications that you are using. Eliminating these files can considerably speed up your machine’s performance.

For these reasons, you should periodically delete the temporary files that may be impacting your computer. Let’s see how you can go about getting this done.

How to Delete Temporary Files in Windows

Before you can delete the temporary files on your machine, you need to locate them. Here is how you can find the Temp folder in Windows 11 as well as earlier versions of the OS.

1. The first is located at c:/Windows/Temp and is used by the OS to store temporary files. Press Windows + R, type: temp and press Enter.

2. The second is the Temp file related to the user currently logged into the system. Here is how to find those temporary folders.

How to Delete Temporary Files on Windows 10/11 (Tutorial) (2)

Windows 11/10 – Using the search field located to the right of the Start button, enter %temp%. The folder at the top of the results is the Temp folder.

Windows 8 – On the “Start” page click on the magnifying glass icon located in the top right of the window – next to your username. Type in %temp% and click on the folder named Temp.

Windows 7, Vista & XP – Click on the Start button and in the search field type: %temp% Click on the folder called Temp.

Steps to Delete Temporary Files in Windows:

You can follow this procedure on both the WindowsTemp folder as well as the folder returned from the searches listed above. The below process remains the same on any version of Windows. We’ve illustrated using Windows 10.

  1. Select all of the files that you want to delete. You are probably safe deleting them all unless there are specific files that you know you want to keep.How to Delete Temporary Files on Windows 10/11 (Tutorial) (3)
  2. Delete the files using the delete key on your keyboard. If you are asked to confirm the deletion of hidden temporary files, give it a Yes.How to Delete Temporary Files on Windows 10/11 (Tutorial) (4)
  3. If you get messages indicating that a file or folder is in use, skip these files as they are locked by Windows or another application.How to Delete Temporary Files on Windows 10/11 (Tutorial) (5)
  4. Wait for the process to complete, which can take some time if you are deleting large temporary files.
  5. Empty your Recycle Bin to permanently delete the files and recover the separate space that they occupied.How to Delete Temporary Files on Windows 10/11 (Tutorial) (6)

đź’»Performing this type of cleanup on a regular basis can help optimize your system and keep your hard drive free of useless files.

Other Methods to Remove Temporary Files

Apart from the traditional method of deleting the temp folder, here are a few more techniques to get rid of your temporary files:

Method #1: Disk Cleanup

Windows 11

  1. Press the Windows key and type in Disk cleanup recommendations.
    How to Delete Temporary Files on Windows 10/11 (Tutorial) (7)
  2. Next, navigate to the Cleanup recommendations section under Storage Management.
    How to Delete Temporary Files on Windows 10/11 (Tutorial) (8)
  3. Now, expand the Temporary Files option, and select the folders you wish to delete. You can tick or untick items to remove them from the selection.
    How to Delete Temporary Files on Windows 10/11 (Tutorial) (9)
  4. Finally, click the Clean up button to delete the temporary files safely.

Windows 10

  1. Press the Windows key, type in Disk Cleanup, and select the option from the results list.
  2. The Disk Cleanup screen will appear. Under Files to delete, tick the files or folders you wish to delete.
  3. You can also click the Clean up system files button. Disk Cleanup will calculate how much space the system can free up safely to clear out the drive space.
    How to Delete Temporary Files on Windows 10/11 (Tutorial) (10)
  4. Finally, click the OK to get rid of temporary files.

Method #2: Using CMD

Another way to completely delete temporary files and folders from your Windows operating system is by using the Command Prompt. We’ve used Windows 11 to illustrate this method. However, this will work on other versions of Windows as well.

Here’s how you can delete temp files via the Command Prompt:

  1. Press Win + S, then type cmd in the search bar.
    How to Delete Temporary Files on Windows 10/11 (Tutorial) (11)
  2. Right-click Command Prompt from the results list and select the Run as administrator option.
  3. Now, type the following command in the cmd window and hit enter:
    del /q/f/s %TEMP%\*
    How to Delete Temporary Files on Windows 10/11 (Tutorial) (12)

Method #3: Remove Temp Files by Cleaning Your Browser

Internet browsers can leave behind a lot of temporary data, such as cached files from websites, cookies, and the user’s browsing history. You can delete these temporary files on Windows by cleaning your browser.

Here’s how you can delete browsing data in Google Chrome for Windows 11 and older versions:

  1. Open Google Chrome and press CTRL + H to open the History menu.
    How to Delete Temporary Files on Windows 10/11 (Tutorial) (13)
  2. Click Clear browsing data from the left-side menu.
  3. Now, select the types of browser data to delete, choose a time range, and finally click Clear data.
    How to Delete Temporary Files on Windows 10/11 (Tutorial) (14)

Another generic way to clean your browser on your system is through the Control Panel:

  1. Click Start and navigate to the Control Panel. Select Network and Internet.
    How to Delete Temporary Files on Windows 10/11 (Tutorial) (15)
  2. Go to Internet Options, then select Delete browsing history and cookies.
    How to Delete Temporary Files on Windows 10/11 (Tutorial) (16)
  3. Select the files and folders you wish to get rid of, then click Delete.

Method #4: How to Delete Temporary Files with Avast Cleanup

It’s important to regularly clean up temporary data from your PC to free up space and optimize its performance. This means keeping your browser clean, and getting rid of cookies and other temp files for an effortless experience.

Such a task may seem taxing if you have to do it manually, but Avast Cleanup thoroughly scans your PC to remove gigabytes worth of junk files from apps, browsers, and even the Windows operating system.

Here’s how to delete temp files with Avast Cleanup:

  1. Download and Install the Avast Cleanup free trial from their official website.
  2. From the Avast Cleanup dashboard, click Maintenance to scan your device for junk files on your system.
  3. Go to System Junk to select temporary files and folders for cleanup. You can either select files manually, select all files, or rely on AI recommendations for temp files you should delete.
    How to Delete Temporary Files on Windows 10/11 (Tutorial) (17)
  4. You can also select Browser cache to delete your temporary web browser files and create more space on your hard drive.
    How to Delete Temporary Files on Windows 10/11 (Tutorial) (18)
  5. Once you’ve selected all the items you want to clean up or delete, click Fix & Clean. You’re all set now!
    How to Delete Temporary Files on Windows 10/11 (Tutorial) (19)
  6. Now, you can view the summary reports of your cleanup activity.
    How to Delete Temporary Files on Windows 10/11 (Tutorial) (20)

Recovering Accidentally Deleted Files and Folders on Windows 11

It is possible that in your quest to clean up the temporary files and folders on your system, some files may be accidentally deleted. In deleting temporary files and emptying the Recycle Bin, you may realize that you inadvertently removed a file or folder.

🛡️Disk Drill is an industry-leading data recovery software that can recover these deleted files for you efficiently.

As soon as you discover that there are files you need to recover, stop using the computer. This gives you the best chance of recovering the files by limiting the possibility that the OS will overwrite the files before they can be restored.

Steps to recover deleted files & folders on Windows 11:

  1. Download and install Disk Drill for Windows. We strongly recommend that you use a USB drive or another external storage device for this task. This removes the possibility that the download and install can overwrite the files you are interested in recovering.

    How to Delete Temporary Files on Windows 10/11 (Tutorial) (21)

    Data recovery for free
    Your Companion for Deleted Files Recovery

    Free Download
  2. Now, launch Disk Drill. Now, select your main hard drive from the list of disks. You can choose your recovery method – Quick Scan or Deep Scan.
    How to Delete Temporary Files on Windows 10/11 (Tutorial) (22)
  3. Click Search for Lost Data. The advanced algorithm will scan the device for lost files, and a progress bar will indicate the progress.

    🆓For the low, low cost of free: Disk Drill’s free trial allows up to 500 MB of free data recovery!

  4. Filter through the search results to select the items you wish to recover. Click on Recover.
    How to Delete Temporary Files on Windows 10/11 (Tutorial) (23)
  5. Now, choose the recovery location. Ensure that you don’t use their original locations, as this can lead to corrupted files that are overwritten as they are recovered. Click on OK.
    How to Delete Temporary Files on Windows 10/11 (Tutorial) (24)

Disk Drill’s powerful scanning algorithms will interrogate your disk on a sector-by-sector basis and recover any files that can be salvaged. It is a great tool to have available in case you make a mistake when you are cleaning up your machine by deleting temporary files.

Conclusion

Every system has temporary data from applications, cached files, browsing history, etc. If these files aren’t cleared out regularly, they can affect your PC’s health and performance.

⏩Deleting temporary files on Windows can help you reclaim space on your hard drive and even optimize your system’s performance.

This article lists all the ways you can safely delete temporary files from Windows 11 and its older versions. While you can manually clear out temporary files and folders at regular intervals, we suggest turning on Storage Sense. This Windows tool automatically clears out unnecessary files and prevents wastage of drive space.

Read also

Recover Deleted or Unsaved Notepad (TXT) Files
Recover Permanently Deleted Word Document

FAQ

How do I remove temporary files from my computer?
How do you clear temp files on Android?
How can I delete temporary files in Windows 11?
Why are my temporary files so large?
What are temp files in Windows 10?

How to Delete Temporary Files on Windows 10/11 (Tutorial) (27)

Joshua Solomon

Technology, SaaS, and digital marketing are Joshua's go-to niches. He understands the need for simple and easy-to-read articles on the internet. As technologies grow in complexity, guides and how-to pieces must remain com...

Read full bio

Technology, SaaS, and digital marketing are Joshua's go-to niches. He understands the need for simple and easy-to-read articles on the internet. As technologies grow in complexity, guides and how-to pieces must remain com...

Read full bio

How to Delete Temporary Files on Windows 10/11 (Tutorial) (28)

Approved by

Brett Johnson

This article has been approved by Brett Johnson, Data Recovery Engineer at ACE Data Recovery. Brett has a Bachelor's Degree in Computer Systems and Network, 12 years of experience.

This article has been approved by Brett Johnson, Data Recovery Engineer at ACE Data Recovery. Brett has a Bachelor's Degree in Computer Systems and Network, 12 years of experience.

Top Articles
Latest Posts
Article information

Author: Roderick King

Last Updated: 01/10/2023

Views: 6261

Rating: 4 / 5 (71 voted)

Reviews: 94% of readers found this page helpful

Author information

Name: Roderick King

Birthday: 1997-10-09

Address: 3782 Madge Knoll, East Dudley, MA 63913

Phone: +2521695290067

Job: Customer Sales Coordinator

Hobby: Gunsmithing, Embroidery, Parkour, Kitesurfing, Rock climbing, Sand art, Beekeeping

Introduction: My name is Roderick King, I am a cute, splendid, excited, perfect, gentle, funny, vivacious person who loves writing and wants to share my knowledge and understanding with you.