Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,556,741
Community Members
 
Community Events
184
Community Groups

I am unable to delete an old branch

Kostiantyn Kulach
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!
Mar 21, 2023

I have a task to delete over 11k old branches. 

I decided to test it manually on the first one and it shows me the error:

image.png

I have reviewed similar topics here and I see only 2 things preventing the branch deletion:

1. Some active PullRequests are present

2. Branch restriction

I have double-checked both and there are no PRs and no Branch Restrictions.

It doesn't work for me either through the UI or through the git command:

image.png

Please, advise.

1 answer

1 accepted

1 vote
Answer accepted
Victor Menes
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Mar 21, 2023

Hey Kostiantyn,

 

Let me see if I can help you with this... It would be good to take a look into this Stack Overflow thread that would be very useful for your current issue!

 

From the thread:

You need to specify the name of the branch on the remote repository; not the name of your remote branch. So, the meaning of git push origin -d origin/TEST, for example, is that you have a branch called TEST in the remote server origin

 

That being said, you could try out the below command with the values adjusted from your side:

git push origin --delete test 
Kostiantyn Kulach
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!
Mar 21, 2023

Thanks, Victor! It helped!

Like Victor Menes likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events