Container Registry: Delete Images/Packages after merge

Problem to solve

Users that utilize the CI pipeline create many images as part of the build process. These images often go unused or are used once, thus taking up space in the registry with no value add.

Intended users

Further details

As an insight gathered from interviews: https://gitlab.com/gitlab-org/uxr_insights/issues/562 users reported no value in an archive of images/tags created on auxiliary (non-master) branches after the branch has been merged.

Users are reporting that their registry size is factor they need to consider when managing their overall project size.

Proposal

When submitting an MR, an option exists to delete the branch after the merge request completes. I propose we add a second check box option to delete branch specific images/packages.

Permissions and Security

Documentation

Testing

What does success look like, and how can we measure that?

Links / references