delete-package-versions
delete-package-versions copied to clipboard
Feature request: keep only N latest versions of the package
It would be cool to have an option to keep only N latest versions of 'package-name' and deleting other versions.
It can be used in combination with date-based deletion https://github.com/actions/delete-package-versions/issues/4
Voted for this one : it would really help if we could keep only N latest versions of a package. Thanks!
Yes, this feature would be highly useful
Came here to ask for this :)
The Action does not make sense without this. Upvote!
similarly, i'd want say "last X versions and all versions less than 30 days old"
Until this is implemented here, I wrote an action which is able to delete everything apart from a configurable number of latest packages (ordered by date desc): https://github.com/SmartsquareGmbH/delete-old-packages
Excellent!
This feature is the first thing I thought about when I found out about this action. I was actually surprised to find out it couldn't do it. Definitely upvoting, but I'm not too hopeful given this project hasn't been updated for quite some time...
Yes, would like to setup package deletion rule like this:
- Keep the N most recent versions, and
- keep all versions created in the past Y months.
(and delete all other versions)