Windows delete all tmp files command

Just a quick note to self about this tip i found. It is a Windows (XP) helpful command line snippet that removes all your temporary files.

Delete all files in temp folder:

DEL /F /S /Q %TEMP%

Taken from the “A-Z Index of the Windows CMD command line

4 Responses to “Windows delete all tmp files command”

  1. jquery zone Says:

    for example if another command to restore files deleted, if you can share!

  2. Torben Says:

    Hey Jesper,

    thanks a lot for this tip! I sometimes have trouble with the speed of my laptop if I watch longer youtube videos due to a high amount of temporary files. I’ll try out if it works better when deleting all tmp files!

    Greetings from Copenhagen!

  3. David Says:

    I found this one for Vista:
    Here’s How:
    1. Click on Start, type the following command in the search box, and then hit the Enter key.
    %temp%
    This command will open the folder that Windows Vista has designated as the Temporary folder. These are folders and files that Windows needed at one time but are no longer useful. Everything in this folder is safe to delete.

    2. To remove individual folders or files, hold down your Ctrl key while left-clicking on each item you want delete. Release the Ctrl key when you’re finished.

    3. To delete these items, hit your Delete key or click the Organize button on the toolbar menu, followed by the Delete option.

    You will probably be prompted to confirm that you wish to Delete Multiple Items. Click on Yes to confirm.

    4. If you’d instead like to remove everything inside the Temp folder, click on the Organize button and then choose Select All from the menu.

    Note: If you’re prompted that there are hidden files in this folder, just click on OK to bypass the message. A few hidden files hanging out in the Temp folder probably aren’t important enough to worry about.

    5. Again, to delete these items, hit your Delete key or click the Organize button on the toolbar menu, followed by the Delete option.

    You will probably be prompted again to confirm that you wish to Delete Multiple Items. Click on Yes to confirm.

    6. After all of the files have been deleted you can close the folder window and empty your Recycle Bin, permanently removing the files from your PC.

    This came from:http://pcsupport.about.com/od/maintenance/ht/manualtempvista.htm

  4. M. Jewel Says:

    Oh, it is really a right way to operate windows xp without any trouble. Thank you for giving the Windows CMD command line.