How to remove pipeline or pipeline jobs from a project hosted on locally GitLab 12.6.4

Hi there

Here i read that it’s possible from version 12.6.0 or above to use the web GUI for that task:

1.)

  • “Click the pipeline you want to remove in the pipelines list”
  • “Hit the red Delete button in the upper right of the pipeline details page.”

OR (???)

2.)

  • you can not delete jobs from the admin gui , you need to delete the pipeline to which the jobs belongs”

Can’t see that: Neither the first, nor the other:

…maybe the informations on the https://stackoverflow.com/questions/53355578/how-to-delete-gitlab-ci-jobs-pipelines-logs-builds-and-history/55815040 are incorrectly?

Thank you for your feedback.

Best regards,
Jan

Thank you for your feedback.

Same question here!!

Problem is still existing…!!

Problem seems to be too complex for that forum, right…?!?

1 Like

Unfortunately, since no one has answered yet, it indeed may be too complex for the forum, @dev! You can always connect with our support team (support@gitlab.com) ! and in the meantime, I will continue to try and find an expert here at GitLab who can help! :blush:

Thank you very much! :slight_smile:

1 Like

It is available according to https://gitlab.com/gitlab-org/gitlab/-/merge_requests/21365

CI/CD → Pipelines → Click on Pipeline ID #xxxxxx → Delete

You can also go from CI/CD → Jobs, you need to click on the Pipeline ID to be able to delete.

Too late after 1.5 years, but thank you anyway… :wink:

Kind regards, Jan

There is no any DELETE button, what are you folks talking about?

Yes there is. Under status click where it says cancelled/passed/failed, or whatever to open up the pipeline. Then in to right there is a retry and delete button. I’ve just deleted two of mine in exactly the same way. Either that or you don’t have the permissions for deleting it.

1 Like

Thank you, Ian!

I’m not quite sure, which page you are referring to as “Status”.

Here is a list of pipelines:

And here is the right menu:

Click on the red box where it says Failed on the left hand side of your image under the status column. It will open, and then you will have like on my screenshot to be able to delete. This is why I cut the first screenshot to show just the status column.

1 Like

If I understood it right, I should see the Delete button to the right of the Retry one here:

However, it’s not there. Do you have an idea what permission I may be lacking?

Ah, seems to be most likely that you need to be an owner of the repository. I’m assuming you are maintainer or lower?

If a maintainer, it can be done via API though, if not through the web interface. (at least what I found with google)

1 Like

Yep, just confirmed this on my test instance. Owner has the GUI option for deleting from the list of pipelines. The user I created as a maintainer in the GUI cannot. From one of the Gitlab 11.x versions functionality for a maintainer to delete pipelines via API was added, so this should be a way of deleting.

Although surprised that the GUI doesn’t allow both maintainers or owners to delete, but then I guess there must be a reason for it.

1 Like

Thank you very much for the clarifications, Ian!

Maybe it’s worth trying doing that via API, yeah. A nice task to try the API :slight_smile:

1 Like

Nah, via API it doesn’t work as well.

I created a “maintainer” Personal Access Token with all the permissions (api, read_api, read_repository, write_repository, read_registry, write_registry) but it doesn’t seem to be enough:

$ curl --request DELETE --header "PRIVATE-TOKEN: glpat-XXXXXXXXXXXXX" "https://gitlab.com/api/v4/projects/NNNNNN/pipelines/YYYYYYYY"
{"message":"403 Forbidden"}

Yeah, it doesn’t seem to be possible:

:frowning:

Ah, that’s a shame :frowning: