Bulk delete packages and package assets from the UI
### Context You use the GitLab Package Registry to publish packages to your project or group. Package assets are the related files that make up a given package. In https://gitlab.com/groups/gitlab-org/-/epics/5152, we are adding a new GitLab feature that will allow you to programmatically delete package assets and (eventually) the packages themselves. ### Problem to solve The policies are great, but there are times when a project Maintainer/Owner is perusing their project and want to manually delete items. Why? There are a few use cases: 1. There are many packages that are in an error state. 2. There is a package with hundreds of duplicate assets that are confusing and slowing down the troubleshooting process 3. There are packages that were uploaded as part of a specific feature branch that all need to be deleted and they don't want to set up a custom policy. ### Proposal Add the ability to bulk delete package and package assets from the user interface. ![Multiselect_delete](/uploads/d1cd8aa653b6fe8b62626118f02e8d3a/Multiselect_delete.png) #### The challenge Adding this functionality is not just a front-end change. It also requires that we create new GraphQL mutations for the bulk deletion. Once done, the front end can be updated according to the design. #### The Plan 1. Create a GraphQL mutation for the bulk deletion of package assets - https://gitlab.com/gitlab-org/gitlab/-/issues/342436 1. Update the UI to allow the bulk deletion of package assets - https://gitlab.com/gitlab-org/gitlab/-/issues/336797 1. Create a service that bulk marks for the destruction of packages - https://gitlab.com/gitlab-org/gitlab/-/issues/361819 1. Create a GraphQL mutation for the bulk deletion of packages - https://gitlab.com/gitlab-org/gitlab/-/issues/342437 1. Update the UI to allow for the bulk deletion of packages - https://gitlab.com/gitlab-org/gitlab/-/issues/227715
epic