The Computer Oracle

How to clear Chocolatey cache in the free version?

--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Puzzle Game Looping

--

Chapters
00:00 How To Clear Chocolatey Cache In The Free Version?
00:51 Accepted Answer Score 73
01:36 Thank you

--

Full question
https://superuser.com/questions/1371668/...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#windows #cache #chocolatey

#avk47



ACCEPTED ANSWER

Score 73


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.