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?
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Delete complete successfully.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.