Skip to content

GitLab Next

    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Menu
    Projects Groups Snippets
  • Get a free trial
  • Sign up
  • Login
  • Sign in / Register
  • GitLab FOSS GitLab FOSS
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Code review
    • Insights
    • Issue
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar

GitLab 15.0 has launched! Please visit Breaking changes in 15.0 and 15.0 Removals to see which breaking changes may impact your workflow.

  • GitLab.org
  • GitLab FOSSGitLab FOSS
  • Issues
  • #41875
Closed
Open
Created Jan 10, 2018 by Gerald Fiedler@ixilon

Allow pipelines to be deleted by project owners

Problem to Solve

There are a number of valid use cases where deleting a pipeline makes sense.

  • Playing around with configuration on a new pipeline resulting in a high number of builds over a short period
  • Perhaps had AutoDevOps or other feature turned on on a project where it wasn't working for some time
  • Leak of confidential or otherwise sensitive data that must be purged

In these cases, having the logs around doesn't add value and you don't want all those tries to be in your history/statistics forever.

There are also, however, risks associated with deleting a pipeline. Important data could be deleted unintentionally, or even maliciously hidden.

Proposal

What we propose for the first iteration of this feature is adding a DELETE verb to the pipeline API endpoint:

DELETE /projects/:id/pipelines/:pipeline_id

The following implementation details are important:

  • Performing this action should require project owner authorization.
  • The action of deleting the pipeline should log the ID and person who did it

Important Considerations

  • We will not provide a web-based version of this feature for the initial iteration, but can consider doing so in the future.
  • Deleting a pipeline will automatically delete all child objects associated with that pipeline (jobs, etc.)

Documentation

  • We should add new documentation to the pipeline API page (https://docs.gitlab.com/ee/api/pipelines.html) that describes how to use the new delete method.

Links / references

Edited Nov 09, 2018 by Jason Yavorska
Assignee
Assign to
Time tracking