API endpoint to delete build result

wareczek
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 13, 2023

Is there a way in REST API to delete build result by build ID? I can't see endpoint like this:

DELETE /api/latest/result/{projectKey}-{buildKey}-{buildNumber}

1 answer

1 accepted

2 votes
Answer accepted
Eduardo Alvarenga
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 13, 2023

Hello @wareczek

Deleting build results through the REST API is yet to be implemented in Bamboo.

Please use the following HTML form to accomplish the same task:

$ curl -u admin_user:admin_pass \
-H 'content-type: application/x-www-form-urlencoded' \
-H 'x-requested-with: XMLHttpRequest' \
-H 'x-atlassian-token: no-check' \
-d 'buildKey=<PLAN_KEY>&buildNumber=<BUILD_NUMBER>' \
'https://bamboo.mydomain.net/build/admin/deletePlanResults.action'

Note: This is an HTML form. It may change over releases, meaning it may not work in future versions of Bamboo.

Kind regards,

Eduardo Alvarenga
Atlassian Support APAC

--please don't forget to Accept the answer if the reply is helpful-- 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events