Apps
Windows Package Manager Logs
Windows Package Manager writes diagnostic logs through the App Installer package when you use winget to search, install, upgrade, import, or repair software. These text-based trace files in DiagOutputDir record package source queries, installer detection, download decisions, hash checks, and failure details so troubleshooting information is available after a command finishes. Kudu removes winget and App Installer diagnostic logs older than seven days, freeing space without touching installed apps, package manifests, account data, or settings.
Why it matters
Why clean Windows Package Manager Logs?
- Repeated winget install and upgrade runs leave behind many timestamped diagnostic logs, and the symptom is a surprisingly large DiagOutputDir under App Installer even though no applications were added there
- Verbose traces from failed installs and source refreshes accumulate line by line, so users notice LocalAppData growing after troubleshooting package errors or retrying the same command multiple times
- Import jobs and bulk upgrades can generate a separate log for each package transaction, which shows up as dozens of old .log files that make recent failures harder to spot
- Logs from previous package source states and installer detection attempts become stale after repository changes, so users may read outdated failure details that no longer match current winget behavior
- Keeping only recent diagnostics reduces noise when collecting support information, because otherwise old App Installer traces can bury the one log that corresponds to today's failed command
- Machines used for scripted deployments or scheduled winget upgrades steadily accumulate historical diagnostic output, and the visible result is disk usage growth with no benefit once the issue window has passed
What gets cleaned
Cache paths Kudu targets
Windows
%LocalAppData%/Packages/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe/LocalState/DiagOutputDir |
Frequently asked
Common questions about Windows Package Manager Logs
Related cleaners
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.