Skip to content
Announcement: We are currently not adding any applications to WinUtil and any apps that will be added through a PR will be declined by the maintainer.

# Delete Temporary Files

Last Updated: 2024-08-07

Info

The Development Documentation is auto generated for every compilation of WinUtil, 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 Files",
      "Description": "Erases TEMP Folders",
      "category": "Essential Tweaks",
      "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://christitustech.github.io/winutil/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

August 7, 2024