Hi @mcascone ,
We don't have a single API method that can be used to delete all package versions from the API, but the foreach loop will do the trick!
I should add that I am doing this as the first stab at an attempt to automatically delete packages from a development feed, when the corresponding branch in github is deleted
I don't know the specifics/details of your use-case, but based on what I read, I'd recommend these guidelines:
- assuming: one GitHub repository, one project, one package you want to release
- use the same package name/group for all packages you create for this project, regardless of branch or development status
- create your "dev" packages using a prerelease version number, that has a sort of
-ci.##version (assuming you use CI to build packages) - embed the commit id and branch in your upack metadata file, for traceability
- if you want to see which branch the packages was created from using the version number alone, add a
+branchmetadata label to the version number for branches (don't do this formaster) - use repackaging and promotion to take your
-cipackages to-rcto stable (and the desired feed) - let retention policies automatically cleanup up the
-cipackages

