Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

REST api to delete plan branch

Is there any rest api available to delete plan branches. I am currently using a post to 


It is working fine in version 6.0.3 but not in version 6.6.3 ?

1 answer

2 votes

Hi @robin , - REST API to Delete plan branches, it became available in Bamboo v6.8.0{projectKey}-{buildKey} [GET, DELETE]

More information in - Bamboo REST API Documentation

Kind regards,

Hi @robin ,

Using the endpoint you have mentioned, you are simply calling the action to confirm your deletion. Instead, you should call:

# http://localhost:8085/bamboo is Bamboo's Base URL


The cURL command would be:

# USERNAME, provide username and password to authenticate in Bamboo
# user MUST have permissions over the Plan to perform deletion

# PROJ-PLAN0, example of a Plan branch to be deleted

# http://localhost:8085/bamboo is Bamboo's Base URL
curl -k -u USERNAME \
-H 'X-Atlassian-Token: no-check' \
--data 'buildKey=PROJ-PLAN0' \
-X POST http://localhost:8085/bamboo/ajax/deleteChain.action

Kind regards,

Thanks @Rafael Pinto Sperafico  for your reply :) 

My bamboo version is 6.6.3.

I am getting an error 

<h1>Page not found</h1>
Sorry, the page you were trying to reach does not exist. Try going back to the dashboard and browse the site to find the page you were looking for. </p>
<h4>Go to...</h4>
<li><a href="/">Site homepage</a></li>

while using the curl 'http://localhost:8085/bamboo/ajax/deleteChain.action'

Is this applicable for my Bamboo version 6.6.3



Hi @robin ,

Could you please confirm http://localhost:8085/bamboo is your Bamboo's Base URL? If not, replace it with your Bamboo's Base URL.

curl -k -u admin:admin \
    -H 'X-Atlassian-Token: no-check' \
    --data 'buildKey=PROJ-PLAN0' \
    -X POST http://bamboo.base.url/ajax/deleteChain.action


Yes, it works on Bamboo 6.6.3

Kind regards,

Thanks a lot :) @Rafael Pinto Sperafico !!!

That was the issue, I thought '/bamboo/' is a part of api. Now it is working fine... :)

Suggest an answer

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

Bamboo 101 Video

G’day Community! As we gear up to introduce Bamboo Data Center to the world, we wanted to make sure that we shared a bit more about Bamboo, the product. Our team has put together an overview video ...

195 views 4 6
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