How to Delete Temporary (Junk) Files in Windows

How to Delete Temporary (Junk) Files in Windows

Here in this little tutorial, I will teach you how to find temporary files on your computer and how to get rid of them. You don’t really need to install any software for this process, and it is straightforward to perform. But before we get started with the post, let’s learn a little about temp files.

What are temporary files?

Temporary files or temp files are unnecessary files/folders which have served their purpose an are no longer needed. These files, most of the times come from installers. When you are installing an app or updating one, some files/folders get saved on the temp directory to help with the install.

They are located in a folder called ‘Temp‘,  which is a directory in the AppData folder of your user profile. Usually, they have a limited lifespan and do go away after some time. But in some cases, they can and stay in the temp folder forever and hog up your space and even memory in case of an installer. These files can also slow your PC down. So deleting up temp files can defiantly help you free some storage space & make your computer a little bit faster.

While temporary files do go away with time, you can still clean delete then manually (without or without any software) to clear up space on your computer and make it a little bit faster.  Here are a few ways that I found which works great for clearing temporary files from your PC.

 

1. Deleting temporary files manually

The first method that we are going to discuss is deleting temp files manually. This one doesn’t require you to download any software or tools at all. It is a very easy process, And anyone with basic knowledge of computers can do it.

Steps to delete temporary files (the easy way).

Step 1. When on your windows desktop, right click on the windows icon the start bar and select Run. Alternately, you can press Win+R on your keyboard to do the same.

Step 2. When the Run Window opens, type %temp% in there.

Step 3. It will take you to a folder where your account’s temporary files are stored.

Step 4. Now for the last step, select all the files and then delete them.

In theory, you can delete all of these files safely without harming your computer in any way. But you may want to double-check that there aren’t any critical files there that you want to preserve.

For example, if you download a pdf file from the internet, but instead of clicking save on the download prompt, you click on the open button. In that case, the file will not be saved onto your local downloads folder, but it will end up on the temp folder instead.

 

2.Using Cleanup utility

For this next method, we are going to use the Disk clean up service. This small little tool comes pre-installed with all the versions of windows after XP (Vista, 7, 8, 8.1, 10 ).

To access this tool on Windows 8/8.1/10, follow the steps below:

Simple steps on how to use the Cleanup utility in Windows

Step 1. Open This PC( My computer) and select your C drive or the drive from where you want to remove the temporary files from.

Step 2. After a disk is selected, look at the top of the This PC window, there you will see a new option with a name ‘Manage’ has popped up. Select it and then click Cleanup. It will now calculate how much junk (temp) file are in your drive and where are they located.

 

Step 3. It will now give you a couple of options to choose from, but you only have to select the one saying Temporary file. While you can select other, I would suggest that you don’t.

Step 4. At last, when you have selected the Temporary files option, hit OK. This will trigger the cleaning process, and once it is done, the temp files will be removed from your system.

Before hitting Ok, you can also click on view files to check which temporary files are going to get deleted.

 

3. Using CCleaner

CCleaner can help you with removing temporary files from your pc. It’s a free program which has many tools to help you clear junk from your computer and make it faster.

Follow these steps:

Step 1. After you have downloaded and installed CCleaner on your computer, look for its icon on your desktop and launch it.

Step 2. Upon launch, on the left-hand side you will see a tab named, Cleaner, click on it.

Step 3. Un-select Everything from there expect the Temporary files and DNS cache which is under the System tab. Also, don’t forget to untick everything from the Applications Section.

You would not want to clear anything related to your browser and stuff from Ccleaner, trust me on this one.

Step 4. After that Hit Analyze and wait for the process to complete. Now after the verification is done, you can click on Run Cleaner, and it will remove the selected temp files for you.

 

4. Delete Temporary Files using CMD

Clearing the temporary files directory can be easily done using CMD. It only involves typing a single command into to command prompt and is not very hard to do.

First open cmd either by launching a run box (Press Win+R) and typing cmd there or by right clicking on the start button and select Command Prompt from there. You can also search for cmd in the search bar of the windows start menu.

Here is the command:

del /q/f/s %TEMP%\*

Now paste the above code in the command prompt window.

 

What this command does is that it deletes every file and folder that currently resides in the temp directory of your user profile. It is similar to the manual deletion method but is quick and can be performed using a single click, let me explain how.

Steps:

Step 1. Following the next step, you will first need to create a batch file (.bat) with the command in there.

Step 2. First, create a new text file and open it on any text editor that you have, notepad for example.

Step 3. Then paste the following code there and save it with a .bat extension (like “filename.bat”). Don’t forget to remove the .txt extension from the end of the file name.

Code:

del /q/f/s %TEMP%\*

Conclusion

This concludes our post on how to delete temp files from a computer. Our goal with this post was to tell you guys how to remove the temporary files from your computers, and I think that we have succeeded. Most of these methods require no external software and can be performed even by amateurs.

These tips should work Windows Vista, 7, 8/8.1, & Windows 10 and we have also specified some of the easiest methods and tricks to clear temp. But if you are still facing problems, ping us down in the comments, and we will help you with your queries.

Thanks for reading, while you are on our site, why not check out other similar posts like this one on How to download youtube videos on PC or this one about best Skype alternatives.

Leave a Comment