The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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.

DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin Site Admin
TAGS
AUG Leaders

Atlassian Community Events