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

Overview

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

Instructions:

  1. Push the same branch name up to your VCS provider

  2. Run the deletion once again to trigger 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

Comments

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

    0

Article is closed for comments.