Step 2: Type the following command in the Command Prompt window and press Enter.ĭel /q /f /s %temp%\* & del /s /q C:\Windows\temp\* Then choose Run As Administrator to run the Command Prompt in an elevated mode, Step 1: Type Command Prompt in the search box on the taskbar and from the result, hover your mouse over the Command Prompt app. Most of the errors that occur stating the file is in use or cannot delete due to system error can be resolved by using command prompt. It is a fact that if you cannot delete a file in Windows operating system by the normal click and delete method, then you can always try the Command Prompt. Step 7: Click on Delete Files when the prompt appears to confirm your choice and to proceed with the cleanup.Īlso Read: How to delete Pagefile.sys which a temp file and takes GBs of space? Method 2: Delete The Temp Files Using Command Prompt Place a check next to files you want to delete and press the OK button. Step 6: The disk clean up takes some time to analyse all your files and then display them categorically.
Step 5: Make a double click on the option Disk Cleanup and when it opens click on ‘Clean up system files.”