How to Rid Your Computer of Temporary Files

Three Methods:Deleting Temporary Files in Windows 7-10Deleting Temp Files in Windows XPDeleting Temporary Files in OS X

There are a number of ways to remove temporary files from your computer, whether it is a Microsoft OS (Windows) or an Apple OS (Mac)." --> "There are a number of ways to remove temporary files from your computer, whether it is a Windows or Mac Computer.

Method 1
Deleting Temporary Files in Windows 7-10

  1. 1
    Open the Start menu and type "%temp%" in the Search field[1]
    • View and delete temp files open the Start menu and type "%temp%" in the Search field (in Windows XP and prior, click the Run option in the Start menu and type "%temp%" in the Run field).
    • Press Enter and a Temp folder should open. You can delete all files found in this folder, and if any files are in use, they can be skipped.
    • Restart the computer.

Method 2
Deleting Temp Files in Windows XP

  1. 1
    Search For Temporary Files. In the case you are running Windows XP, follow the instructions below to search for and delete any temporary file found on your computer.[2]
    • Click the "Start button" to open the Start menu.
    • Click on the "Find" option, then click on "Find Files or folders."
    • Type "*.tmp" to search for any files with a "temp" file extension.
    • Verify that the "Look in" section of the search box is pointing to the C: drive and not document folders.
    • Click the "Find Now" button to start the search.
    • Delete all files that are found.
  2. 2
    Once the above steps have been completed, it is also recommended that you ensure the temporary folder on the hard drive is empty by following the steps below.
    • Double-click the "My Computer" icon.
    • Double-click on the "C": drive.
    • Double-click on the "Temp" folder (if present) and verify that all files in this folder are deleted.
    • Close the window and re-open "My Computer."
    • Double-click on the 'C": drive.
    • Double-click on the "Windows" folder.
    • Double-click on the "Temp" folder (if present) and verify that all files in this folder are deleted.
  3. 3
    Running MS-DOS or Windows 3.x, follow the instructions below to remove any temporary files currently on the computer. [3]
    • Click "File" and choose the option to "Exit Windows".
    • Type the following:
    • "cd"\ <press Enter>
    • "del" "*.tmp" <press Enter>
    • Delete all temporary files found in the root directory of the C drive.
    • Type the following:
    • "cd"\ <press Enter>
    • "cd temp" <press Enter>
    • Viewing the, C:\TEMP> directory (if present), type "del *". To delete all files in the temp directory.
    • Once deleted or if the temp folder is not present, type the following:
    • "cd"\ <press Enter>
    • "cd Windows" <press Enter>
    • "cd temp" <press Enter>
    • Viewing the C:\Windows\TEMP> directory (if present), type "del *". to delete all files in the directory.

Method 3
Deleting Temporary Files in OS X

  1. 1
    Delete Cache and Log Files Manually on the Mac. There are three sets of Caches in OS X, the User Cache, the Browser Cache and the System Cache. The following steps will explain how to delete all these files from your Mac. [4]
    • In the "Finder Menu", under "GO" choose “Go to Folder” you can also use the shortcut: "Shift + CMD + G".
    • Go To Folder dialog box enter: "~/Library/Caches"
    • Select all the files in the "Cache Folder", you can do this by first selecting an item within the "Cache Folder" and then going back to the "Finder menu", then choosing "Select All" under the "Edit Menu" or by using the shortcut: "CMD + A".
    • Delete all selected files by dragging them to the Trash folder in your "Dock" and then "Emptying" the "Trash" in the "Finder main menu".
    • Repeat the above steps but by replacing “~/Library/Caches” with: “/Library/Caches” and “~/Library/Logs” if you would like to remove your Mac’s Log files.

Tips

  • If Your Running Any Of These Versions Of Windows. We suggest running the Windows Disk Cleanup utility to delete temporary files and clean up other portions of your computer.
  • Determine Which Files Need To Be Deleted. Because all temporary files are only a location to hold information temporarily, all temporary files are safe to delete. However, keep in mind that if a file or program is using that file, you may not be able to delete the file.
  • If your Unable To Delete Temporary Files. If you get an error when trying to delete a .tmp file, Windows or another software program that is running is currently using it. Close all open programs, restart the computer and try deleting the file again. If you are still having problems, see the document below.
  • At Stage 3 of Mac OS-X, it might be a good idea to quickly make a backup of the files we are about to delete, this is optional but it only takes a moment and in the very unlikely event we have a problem we can just put these back where they came from. The simplest way to make a quick copy is to hold the "alt" key and drag the folder to your desktop.

Warnings

  • This document relates to deleting, temp files, not how to clear your browser Internet history or cache.

Article Info

Categories: System Maintenance and Repair