Delete Temporary

Last Updated: 2024-08-07

Note

The Development Documentation is auto generated for every compilation of o9, meaning a part of it will always stay up-to-date. Developers do have the ability to add custom content, which won’t be updated automatically.

Description

Erases TEMP Folders

Preview Code
{
  "Content": "Delete Temporary",
  "Description": "Erases TEMP Folders",
  "category": "Tweaks l",
  "panel": "1",
  "Order": "a002_",
  "InvokeScript": [
    "Get-ChildItem -Path \"C:\\Windows\\Temp\" *.* -Recurse | Remove-Item -Force -Recurse
    Get-ChildItem -Path $env:TEMP *.* -Recurse | Remove-Item -Force -Recurse"
  ],
  "link": "https://o9-9.github.io/o9/dev/tweaks/Essential-Tweaks/DeleteTempFiles"
}

Invoke Script

Get-ChildItem -Path "C:\Windows\Temp" *.* -Recurse | Remove-Item -Force -Recurse
    Get-ChildItem -Path $env:TEMP *.* -Recurse | Remove-Item -Force -Recurse

View the JSON file