Temporary files appear on your computer and take up unnecessary space that can really build up overtime. Luckily, some of these temporary files can be deleted quickly with the following commands.
Delete temporary user files: del /q /f /s %temp%\*
Delete temporary system files (requires admin rights): del /s /q C:\Windows\temp\*
...Or run them together: del /q /f /s %temp%\* && del /s /q C:\Windows\temp\*
Note: /q runs the operation without a confirmation prompt, /f ignores the read-only attribute and forces deletion, /s deletes contents from all sub-folders
Comments