+3 votes
141 views
Delete Temporary Files Windows 10 CMD Manually

in Windows 10 by (552k points)
reopened | 141 views

1 Answer

+4 votes
Best answer

How to delete temporary files in Windows 10 using CMD

As we open applications and files in Windows 10, a set of elements called temporary files are created which are a group of files linked to the object (app or file) to facilitate that the next access to it loads its data from one much more efficient way, but with the passage of time (months or years), if these files are not cleaned, problems such as:

 

Problems cleaning files

  • Improper use of hard disk space
  • Failure to access files or programs (due to changes in these)
  • System errors

 

 

Traditionally to delete temporary files in Windows 10 we do it with the command% temp% and later delete the information, but in this tutorial we will learn how to delete these temporary files from CMD..

 

 

 

To stay up to date, remember to subscribe to our YouTube channel!   SUBSCRIBE

 

How to delete temporary files in Windows 10 using CMD

 

Step 1

To achieve this, we access CMD as administrators:

 

image

 

Step 2

Once in the console, we must understand two aspects for the task. This in order to know where in Windows 10 the temporary files should be cleaned.

 

  • To go to the previous folder we execute "cd .."
  • To go to the root folder we execute "cd .."

 

 

image

 

Step 3

Now we are going to delete the temporary ones using the command:
 del * .tmp / s / f / q 
The del (delete) command is responsible for deleting the data information based on the defined criteria, in this case we will delete all the temporary files whose extension is .tmp (* .tmp), the parameters used are:

 

  • / s: is responsible for deleting specific files from the current directory and all subdirectories, in addition to that, it displays the names of the files as soon as they are eliminated in the console
  • / f: this is a parameter that forces the deletion of read-only files
  • / q: this is the you silent mode, that is, it does not ask for the delete confirmation

 

Step 4

Besides this it is possible to use extra parameters such as:

 

  • / p: Prompts for confirmation before deleting the specified file in the console
  • / a [:] <attributes>: Removes files based on the following file attributes, r (read-only files), h (hidden files), i (non-indexed content files), s (system files), a (files ready to archive), l (reanalysis points)
  • / ?: displays help at the command prompt

 

Step 5

Executing the command leads to the process of deleting temporary files in Windows 10:

 

image

 

Step 6

At the end we will see the following:

 

image

 

 

Step 7

After this, we access the File Explorer, right-click on the C drive and select Properties:

 

image

 

 

Step 8

We will see the following:

 

image

 

Step 9

We click on "Free up space" and in the pop-up window we select the desired options including "Temporary files":

 

image

 

 

Step 10

Apply the changes by clicking OK and we will see the following message:

 

image

 

Step 11

Click Delete files to confirm the process:

 

image

 

This has been the way to delete temporary files manually in Windows 10.

 


by (3.5m points)
edited

Related questions

+3 votes
1 answer
asked Oct 27, 2020 in Other Devices by backtothefuture (552k points) | 213 views
+3 votes
1 answer
asked Oct 5, 2020 in Windows 10 by backtothefuture (552k points) | 232 views
+5 votes
1 answer
+3 votes
1 answer
asked May 20, 2020 in Windows 10 by backtothefuture (552k points) | 220 views
+5 votes
1 answer
asked Oct 9, 2020 in Windows 10 by backtothefuture (552k points) | 245 views
Sponsored articles cost $40 per post. You can contact us via Feedback

Most popular questions within the last 30 days

10,659 questions
10,791 answers
510 comments
3 users