Gizmo's Freeware
Published on Gizmo's Freeware (https://www.techsupportalert.com)

Home > Use the Command Line for a Quick Cleanup of Windows Temp Files

Use the Command Line for a Quick Cleanup of Windows Temp Files [1]

Last updated by v.laurie [2] on 04. February 2021 - 13:38

The previous tip [3] showed how to configure Windows Disk Cleanup to reduce the time that temp files are kept. A simple approach that allows the deletion of temp files right away uses the Windows command line [4] and the environment variable [5] %TEMP%. Open the command line and enter:

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

One precaution to observe: do not apply this command right after installing updates or new programs that require a reboot. Sometimes these processes use temp files to finish installation.

Get your own favorite tip published!  Know a neat tech tip or trick?  Then why not have it published here and receive full credit?  Click here to tell us your tip. [6]


This tips section is maintained by Vic Laurie. Vic runs a Windows blog called The PC Informant [7] and also operates a computer education website. [8]

Click here [9] for more items like this. Better still, get Tech Tips delivered via your RSS feeder [10] or alternatively, have the RSS feed sent as email [11] direct to your in-box.

Please rate this article: 

Your rating: None
4.14706
Average: 4.1 (34 votes)
toggle-button

Terms & Conditions | Privacy Policy | Contact | About


Source URL: https://www.techsupportalert.com/content/use-command-line-quick-cleanup-windows-temp-files.htm?order=title&sort=asc

Links
[1] https://www.techsupportalert.com/content/use-command-line-quick-cleanup-windows-temp-files.htm
[2] https://www.techsupportalert.com/users/maxwell
[3] http://www.techsupportalert.com/content/make-windows-disk-cleanup-work-better.htm
[4] http://www.techsupportalert.com/content/perhaps-most-under-appreciated-tool-windows-command-line.htm
[5] http://www.techsupportalert.com/content/save-time-and-typing-windows-shortcuts-use-environment-variables.htm
[6] https://www.techsupportalert.com/../../../../../../content/submit-tip.htm
[7] http://tips.vlaurie.com
[8] http://vlaurie.com
[9] http://www.techsupportalert.com/view/tips
[10] http://feeds.feedburner.com/GizmosTechTips
[11] http://feedburner.google.com/fb/a/mailverify?uri=GizmosTechTips&loc=en_US