Skip to content

Allow ability to bulk delete artifacts from the Artifacts list

Release notes

Problem to solve

Artifacts need to be able to be deleted in bulk as they can often impact storage negatively. It is tedious to have to delete them one-by-one. We found this out in https://gitlab.com/gitlab-org/ux-research/-/issues/1859+. This is an iteration on #33418 (closed).

Intended users

User experience goal

Delete many artifacts at once.

Proposal

🎨 All screens in design assets

🖌 Figma file screens under "Bulk delete"

backend

  • Add a mutation that will delete more than one artifact by taking in an array of artifact IDs, which might also require more work to create a service to do the deleting like bulk runner deletion did?

frontend

  • Add a <gl-form-checkbox /> at the start of each artifact row to control whether the artifact is selected for deletion
  • We can keep a list of selected artifacts in the same way that we're keeping a list of expanded jobs already, then when the user clicks the bulk delete button, we call the mutation with that array of IDs
  • Use the same "Are you sure?" modal pattern as we're using for single artifact deletion to prevent accidental deletion
  • Hide these elements if the user doesn't have permission to delete artifacts (#382078 (closed))

Further details

Permissions and Security

Documentation

Availability & Testing

Available Tier

Feature Usage Metrics

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

What is the type of buyer?

Is this a cross-stage feature?

What is the competitive advantage or differentiation for this feature?

Links / references

This page may contain information related to upcoming products, features and functionality. It is important to note that the information presented is for informational purposes only, so please do not rely on the information for purchasing or planning purposes. Just like with all projects, the items mentioned on the page are subject to change or delay, and the development, release, and timing of any products, features, or functionality remain at the sole discretion of GitLab Inc.

Edited by Miranda Fluharty