Apps

Chocolatey Logs

Chocolatey writes rolling text log files under %ProgramData%\chocolatey\logs for every install, upgrade, uninstall, and background package operation. These logs capture PowerShell output, package execution traces, download and checksum messages, NuGet feed requests, and error stacks so package runs can be diagnosed later, but old sessions accumulate quickly and are not needed for normal package management. Kudu removes Chocolatey log files older than one week while leaving installed packages, backups, configuration, binaries, credentials, and package metadata untouched.

Why it matters

Why clean Chocolatey Logs?

  • Repeated install and upgrade runs append verbose PowerShell and package execution traces, so the logs folder can quietly grow into hundreds of megabytes and show up as unexpected ProgramData disk usage
  • Large numbers of old choco summary and error logs make it slower to manually inspect recent failures because the useful output is buried among stale sessions from packages you no longer care about
  • Package scripts that print extensive console output create oversized text logs, which can make antivirus scans and file indexing touch many obsolete files and cause brief disk activity during searches or backups
  • When troubleshooting a current install problem, week-old download and checksum messages from previous package versions can be mistaken for current behavior and send users down the wrong path
  • Failed or interrupted package runs often leave detailed stack traces and repository URLs in historical logs, so cleaning reduces leftover diagnostic clutter without affecting the actual installed software
  • On systems with frequent automation, scheduled Chocolatey jobs generate a steady stream of timestamped logs; over time this produces needless backup churn and longer sync times even though the old records are no longer operationally useful
What gets cleaned

Cache paths Kudu targets

Windows

%ProgramData%/chocolatey/logs
Frequently asked

Common questions about Chocolatey Logs

Free & open source

Download Kudu and reclaim your disk space.

Available on Windows, macOS, and Linux. No account required, no feature gates, no telemetry without consent. All cleaning targets are open source and community-auditable.