Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Repo stuck in Forking

jason-edinger-ontsys
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!
August 6, 2026

I have repo that has been forking for almost 24 hours. The repo is not in a state where I can delete it. How do I go about delete the repo when stuck in a forking state?

2 answers

1 accepted

1 vote
Answer accepted
Syahrul
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 6, 2026

Hi @jason-edinger-ontsys ,

I've had a look and it appears the fork got stuck during the creation process, leaving the repository in an incomplete state. To clear this, the repository will need to be deleted so you can attempt the fork again.

Could you try deleting it via the API using the following command:

curl -X DELETE -u {email}:{api_token} \
  https://api.bitbucket.org/2.0/repositories/<Workspace>/<Repo_name>

Replace {email} with your Atlassian account email and {api_token} with an API token generated from your Atlassian account settings at https://id.atlassian.com/manage-profile/security/api-tokens. 

Once deleted, please try the fork again and let me know if it completes successfully.

Regards,
Syahrul

Nabeel awan
August 6, 2026

 

Thanks for the update, @Syahrul. The API delete method is useful workaround for repositories stuck in an incomplete forking state. Hopefully, once it's deleted, the fork will complete normally on the next attempt.

0 votes
jason-edinger-ontsys
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!
August 7, 2026

Delete complete successfully.

Suggest an answer

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

Atlassian Community Events