Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there any software for cleaning Windows' local settings / temp folder?

With no installing, not many options, just a simple, nice interface with buttons to do what's needed and which wouldn't scare the younger users. Explicitly made for clearing the temp folder? Or maybe there is some command which can be run in Command Prompt (cmd.exe)?

It's just that Adobe Shockwave Player has some weird bug. It stores the files in this folder and now I and few other users are experiencing problems with files being used, not found and lot of mess generally which I guess is caused by the files being stored in this folder and not overwriting.

So it's kind of a hard situation here.. Disk Cleanup does not help in clearing this folder and CCleaner is very confusing for young users and people not into the OS.

share|improve this question
Why doesn't Disk Cleanup's "clear temporary files" work? I use it all the time. – Mark Sowul Mar 9 '11 at 20:28
It doesn't clean the contents of folder temp. – Rihards Mar 9 '11 at 20:38
%temp% usually refers to a variable,temp, in a batch file but now %temp% refers to regular files on the hard disk – user115004 Jan 24 '12 at 2:39
up vote 7 down vote accepted

You really don't need special software to do a straight delete of all files in any folder, this can be done with a simple batch file or from the command line:

del /s /q /f %temp%\*
del /s /q /f %windir%\temp\*

The first will get the current user temp folder, the other will get the system temp folder that some applications like to use.

EDIT: Per request, here is an explanation of the switches used, as found on MS Documentation:

/f : Forces deletion of read-only files.

/s : Deletes specified files from the current directory and all subdirectories. Displays the names of the files as they are being deleted.

/q : Specifies quiet mode. You are not prompted for delete confirmation.

share|improve this answer
isn't %windir%\temp only used if the TEMP or TMP environment variable (should that last one not be in your answer as well?) is set to that dir? – stijn Jul 11 '12 at 17:01

menu Start > All Programs > Accessories > System Tools > Disk Cleanup does exactly what you want, it will walk you through the whole process. If you want something more in depth CCleaner is a great free program for this. You can also automate both of these with scheduled tasks.

Let's document this so you can see that it does clean %Temp%.

  • My Temp folder:

enter image description here

  • select temp files in Disk Cleanup:

Enter image description here

  • Temp file after cleaning up; as you can see there are some files left over because they are in use (I'm not actually sure what's up with that debug file from November, but I can't delete it manually so I'll have to look at later):

enter image description here

If you are still having issues, there might be some other problem with how the program placed the temp file there just like I have with that debug file.

share|improve this answer
Disk cleanup does not clean the folder's temp content. It does not! The temp folder I mean can be accessed typing: %temp% in start->run. CCleaner does that, however that's too complicated for non experienced users as i mentioned. – Rihards Mar 9 '11 at 20:37
-1? I guess disk clean up doesn't clear temp files, my bad... xD – Not Kyle stop stalking me Mar 9 '11 at 20:38
Disk clean up 100% clears temp files let me get some screenshots for you... don't get angry because you don't know how to use it... – Not Kyle stop stalking me Mar 9 '11 at 20:41
It doesn't clean up everything, only things older than last login. – Mark Sowul Mar 9 '11 at 20:46
@richard CCleaner still solves your problem.... – Not Kyle stop stalking me Mar 9 '11 at 20:53

You could use a tool like Belvedere. Drop it on a drive, put a shortcut in the Startup folder, and set a few rules. I use it for maintaining my drives.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .