Is there a way to delete a particular build?

Sometimes some secret credentials might leak into the logs and so as to contain the damage, it would be great if an operator could delete that affected build (and logs) after fixing the issue.
Is it possible to do so ? No such option in UI.

there is a an API endpoint to purge log commands, and a pull request to add a CLI command … hopefully we can get the PR merged soon.

1 Like

@bradrydzewski whats the API endpoint?

This is the endpoint:

DELETE /api/repos/{owner}/{name}/logs/{build}

For example:

DELETE /api/repos/octocat/hello-world/logs/42

This now returns a 404. What would be the equivalent for deleting a build log in the latest version?

1 Like