Ability to delete packages based on number of packages stored in registry

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Proposal

This feature proposal is created on behalf of a GitLab Premium customer who requested via a support ticket.

Add the ability to delete packages in the package registry after a certain number of packages are stored. This proposal would allow users to delete packages based on quantity. For example, if a limit of 1000 packages was in place, the 1001st package would be saved and the 1st package would be deleted.

This would ideally be added as another means of reducing package registry storage.

Why

This would help users to manage storage used by packages when they wish to only store a specific number of packages on their instance. Currently, if a user wanted this specific functionality, they would have to delete packages manually via the UI or API

Edited by 🤖 GitLab Bot 🤖