Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to delete a Bamboo plan by API

There's a way to delete a plan by API?
I've looked at but I couldn't find a method that deletes an specific plan.

1 answer

2 votes
Jeremy Owen Atlassian Team Oct 17, 2018

Hey Sarah,

Unfortunately there's no REST API to delete a plan at this time.

As an alternative, you could utilize an internal Bamboo API to perform the removal but that's subject to change (and has changed in the past) between versions without much notice. So it's risky to rely on this endpoint being static.

There's an example on how you can do that for Bamboo 6.6 posted by my colleague as an answer to the below question:

However I noticed that you were looking at the Bamboo 5.13.2 REST API documentation and the above example won't work on Bamboo 5.13.2.

I've adapted the example for Bamboo 5.13.2 and included it below:

# Marks plan for deletion. Plan will be deleted by batch job.
# replace {username}
# replace {planKey}, e.g PROJ-PLAN
# replace http://localhost:8085 with URL to access Bamboo

curl -k -u {username} \
-H 'X-Atlassian-Token: no-check' \
-H 'Accept: application/json' \
-H 'Content-Type: application/x-www-form-urlencoded' \
-d 'buildKey={planKey}' \
-X POST 'http://localhost:8085/chain/admin/deleteChain!doDelete.action'

Hope this helps! :)



Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bamboo

Bamboo Data Center 8.1 is now available

G’day Bamboo customers, Bamboo DC 8.1 is now available with it the following features and programs: SAML 2.0, OpenID Connect, and Crowd SSO In order to help admins with a simplified user manage...

167 views 0 4
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you