How to delete branches from CircleCI that were deleted from my VCS?

CircleCI automatically deletes branches when we receive a branch deletion event from your VCS provider (GitHub / Bitbucket). For various reasons, this may become out of sync.


  • Push the same branch name up to your VCS provider

  • Run the deletion one again to retrigger the deletion

The branch should now be deleted.

Additional Notes

 If you attempt to delete a branch while a job connected to that branch is still running, the branch will be re-created in CircleCI when the job is finished. Please allow all jobs running on a branch to finish before deleting them from the VCS provider to assure they will stay deleted. 

Additional Resouces

 How can I delete a branch?

Was this article helpful?
10 out of 25 found this helpful


1 comment
  • Aaaaah, this is it !
    Glad to do some cleanup of ghost branches :)


Article is closed for comments.