Skip to content

Add ArtifactDestroy GraphQL mutation

Lee Tickett requested to merge 33418-add-delete-artifact-mutation into master

What does this MR do and why?

This MR adds a GraphQL mutation to allow deleting a job artifact, in order to support delivering #33418 (closed)

How to set up and validate locally

Until !96422 (merged) is merged, you'll need to use the rails console to find an artifact id.

Then use the artifact id with the mutation:

mutation {
  artifactDestroy(input:{
    id: "gid://gitlab/Ci::JobArtifact/293"
  }) {
    artifact {
      name
    }
  }
}

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Lee Tickett

Merge request reports