microsoft / winget-create

The Windows Package Manager Manifest Creator command-line tool (aka wingetcreate)
MIT License
489 stars 84 forks source link

Clean up log files and installer cache directory #426

Closed mdanish-kh closed 1 year ago

mdanish-kh commented 1 year ago

Description of the new feature / enhancement

If a person uses winget-create regularly, the installer cache directory can hog up a lot of space without the user realizing it. I usually use the wingetcreate cache --clean command but for a few weeks when I didn't while testing PRs I realized the directory took more than 8 gigs of space

Proposed technical implementation details

Similar to how winget-cli removes log files:

winget-create should also periodically clean up installer cache and logs directory