How to clear Chocolatey cache in the free version?

Solution 1:

You may use for cleaning the cache the unofficial but approved package of choco-cleaner.

The installed package creates a Windows Scheduled Task to run Choco-Cleaner.ps1 every Sunday at 11:00 PM.

To install, run the following:

choco install choco-cleaner

To upgrade (unofficial) Choco Cleaner (Script + Task), run the following:

choco upgrade choco-cleaner

You may also manually run this task immediately in one of the following ways from the documentation:

  • Command Prompt:

    \ProgramData\chocolatey\lib\choco-cleaner\tools\Choco-Cleaner-manual.bat
    
  • PowerShell:

    Set-ExecutionPolicy -ExecutionPolicy Unrestricted
    C:\tools\BCURRAN3\choco-cleaner.ps1
    
  • Windows Start Menu: If you have choco-shortcuts-winconfig installed, you'll find it with the rest of the Chocolatey Shortcuts.