This guide shows you how to delete temporary files and folders for the following Windows versions: Windows XP, Vista, 7, 8, 8.1 and Windows 10.
Contents
Delete temporary files and folders in Windows XP
Before you begin, please make sure that:
- You’re logged in as an Administrator
- No software is running: close all open applications and exit any software that is not essentials, e.g. printing software, antivirus
Do not delete any temporary files and folders if you’ve recently installed a new software or update, but didn’t perform a restart of your computer. Certain software can still use the Temp folder until you restart the PC.
Delete using Windows Explorer
To delete the files and folders using the Windows Explorer, follow these instructions for Windows XP systems:
- Click Start
- Click Run
- Type
%temp%
in the search box - Click OK or press Enter to open the Temp folder
The Temp folder holds all the temporary files and folders for the Windows XP systems.
- From the Tools menu, click Folder Options
- The Folder Options window should now appear
- Click the View tab
- Under Hidden files and folders, check the Show hidden files and folders checkbox
- Click OK
- Select all the files and folders you see in the Temp folder by pressing Ctrl + A
- Press Shift + Delete key to delete the selected files and folders.Or, you can right-click on the selected files and folders, click Delete. Then empty the Recycle Bin.
- Click Yes to confirm deletion
Delete using Disk Cleanup
You can also use the Disk Cleanup utility which can delete the files and folders from the Temp folder:
- Click Start
- Go to All Programs, then Accessories, then System Tools
- Click Disk Cleanup
- Select the Temporary files option, deselect all other options, then click OK
- Click Yes to confirm that you want to delete from the Temp folder
You can also open the Disk Cleanup Utility by:
- Open My Computer
- Right-click the
C:\
drive, whereC:\
is the drive where Windows XP is installed - Select Properties
- Click Disk Cleanup at the General tab
Delete using Command Prompt
To delete the contents of the Temp folder, open Command Prompt and type this command:
del /q/f/s %TEMP%\*
Delete temporary files and folders in Windows Vista
Before you delete the temporary files and folders, please make sure that:
- You’re logged in as an Administrator
- Exit any running software that might use the Temp folder
If you installed a new update or software, restart the computer before you delete the Temp folder. Certain software can still use the Temp folder.
Delete using Windows Explorer
To delete the files and folders on a Windows Vista system using the Explorer, just follow these steps:
- Click Start
- Type
%temp%
in the search box - Press Enter on your keyboard to open the Temp folder
- From the View tab, select Hidden items
- Select all files and folders by pressing Ctrl + A
- Then press Shift + Delete keys or right-click on these files and folders and click Delete.If you’ve opted for the last method, empty the Recycle Bin.
- Click Yes to confirm that you want to delete these files and folders you’ve selected
Delete using Disk Cleanup
You can also use the Disk Cleanup utility on your Windows Vista:
- Click Start > All Programs > Accessories > System Tools
- Click Disk Cleanup
- Select the drive you want to clean up, then click OK
- Select the Temporary files option, deselect all other options, then click OK
- Click Delete Files to confirm deletion of the files and folders
In Windows Vista, you can also open the Disk Cleanup utility by:
- Click Start
- Type
disk cleanup
in the search box - Press Enter
Delete using Command Prompt
To delete the contents of the Temp folder using Command Prompt, type this command:
del /q/f/s %TEMP%\*
Delete temporary files and folders in Windows 7
The steps to delete temporary files and folders in Windows 7 are similar to those of Windows Vista.
Make sure you are logged in as an Administrator.
If you installed a new update or software, restart the computer before you delete the Temp folder. Certain software can still use the Temp folder.
Delete using Windows Explorer
The instructions are:
- Click Start and type
%temp%
in the search box - Press Enter to open the Temp folder containing temporary files and other folders
- From the Organize or Tools menu, click Folder and search options or Folder options…
- The Folder Options window should now appear
- Click the View tab
- Under Hidden files and folders, check the Show hidden files, folders, or drives option
- Click OK
- Select all files and folders by pressing Ctrl + A (or select them with the mouse), then press Shift + Delete keys.If you delete the files and folder by right-click > Delete, empty the Recycle Bin.
- Click Yes to confirm the action
Delete using Disk Cleanup
The Disk Cleanup utility removes unnecessary files from your computer, including the temporary files and folders.
To open Disk Cleanup on a Windows 7 system, follow these instructions.
Method #1:
- Click Start
- Click All Programs > Accessories > System Tools > Disk Cleanup
- Select the Temporary files option (you can deselect all other options)
- Click OK
- Click Delete Files to confirm the delete action
Method #2:
- Open My Computer
- Right-click the the drive where Windows 7 is installed, usually
C:\
- Select Properties
- Click Disk Cleanup at the General tab
Delete using Command Prompt
To delete the temporary files and folders using Command Prompt, type this command:
del /q/f/s %TEMP%\*
Delete temporary files and folders in Windows 8 or 8.1
These instructions apply for both 8 and 8.1 systems.
Before you continue with these sets of instructions, please log in as an Administrator and exit any running programs.
Make sure you perform a restart of your computer before you delete the contents of the Temp folder. Certain software or updates can still use the Temp folder if you haven’t performed a restart.
Delete using Windows Explorer
To delete the temporary files and folders on a Windows 8 or Windows 8.1 computer, using the Windows Explorer, follow these steps:
- Click Start and start typing
%temp%
in the search box - The press Enter on your keyboard to open the Temp folder.
The Temp folder holds all temporary files and folders on your computer.
- At the View tab, click Hidden items
- You need to select all files and folders from the Temp folder. You can do that by:
- By pressing Ctrl + A, then press Shift + Delete keys on your keyboard. This will delete all the files and folders you’ve selected.
- You can also right-click on these files and folders and then click Delete.If you opt for this method, empty the Recycle Bin afterwards.
- Click Yes to confirm your action
Delete using Disk Cleanup
If you’d like to delete the temporary files and folders using Disk Cleanup (which can delete other unnecessary files from your computer), follow these steps.
Both set of instructions apply to Windows 8 and Windows 8.1
- Click Settings
- Go to Control Panel
- At the Administrative Tools section, click Disk Cleanup
- Select the Temporary files option
- Click OK
- Click Delete Files to confirm
Or, you can open the Charm Bar:
- Open Search by pressing the and C keys
- Then type
disk cleanup
in the search field - Then press Enter on your keyboard
- The Disk Cleanup window should appear
Delete using Command Prompt
To delete the contents of the Temp folder using Command Prompt, type this command:
del /q/f/s %TEMP%\*
Delete temporary files and folders in Windows 10
Before you continue with these sets of instructions, please log in as an Administrator and exit any running programs.
Make sure you perform a restart of your computer before you delete the contents of the Temp folder. Certain software or updates can still use the Temp folder if you haven’t performed a restart.
Delete using Windows Explorer
To delete the temporary files and folders on a Windows 10 computer, using the Windows Explorer, follow these steps:
- Click Start and start typing
%temp%
in the search box - The press Enter on your keyboard to open the Temp folder.
The Temp folder holds all temporary files and folders on your computer.
- At the View tab, click Hidden items
- You need to select all files and folders from the Temp folder. You can do that by:
- By pressing Ctrl + A, then press Shift + Delete keys on your keyboard. This will delete all the files and folders you’ve selected.
- You can also right-click on these files and folders and then click Delete.If you opt for this method, empty the Recycle Bin afterwards.
- Click Yes to confirm your action
Delete using Disk Cleanup
If you’d like to delete the temporary files and folders using Disk Cleanup (which can delete other unnecessary files from your computer), follow these steps.
- Click Settings
- Go to Control Panel
- At the Administrative Tools section, click Disk Cleanup
- Select the Temporary files option
- Click OK
- Click Delete Files to confirm
Delete using Command Prompt
To delete the contents of the Temp folder using Command Prompt, type this command:
del /q/f/s %TEMP%\*
More Information
Support Links
- Easy Recovery Essentials for Windows – our repair and recovery disk.
It’s an easy-to-use and automated diagnostics disk. It’s available for Windows 8, Windows 7 and Windows Vista. It’s also available for Windows XP and Windows Server.Read more at Windows Recovery Disks.
- The NeoSmart Support Forums, member-to-member technical support and troubleshooting.
- Get a discounted price on replacement setup and installation discs: Windows XP, Windows Vista, Windows 7, Windows 8, Windows 10.
Applicable Systems
This Windows-related knowledgebase article applies to the following operating systems:
- Windows XP (all editions)
- Windows Vista (all editions)
- Windows 7 (all editions)
- Windows 8 (all editions)
- Windows 8.1 (all editions)
- Windows Server 2003 (all editions)
- Windows Server 2008 (all editions)
- Windows Server 2012 (all editions)
- Windows 10 (all editions)