Skip to content

Instantly share code, notes, and snippets.

@mohitt
Last active December 3, 2019 18:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mohitt/e8ca9c46c0247b64a2b38bc3b81c0cf8 to your computer and use it in GitHub Desktop.
Save mohitt/e8ca9c46c0247b64a2b38bc3b81c0cf8 to your computer and use it in GitHub Desktop.
Delete All Windows Temp files
Set-Location “C:\Windows\Temp”
Remove-Item * -recurse -force
Set-Location “C:\Windows\Prefetch”
Remove-Item * -recurse -force
Set-Location “C:\Documents and Settings”
Remove-Item “.\*\Local Settings\temp\*” -recurse -force
Set-Location “C:\Users”
Remove-Item “.\*\Appdata\Local\Temp\*” -recurse -force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment