Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

What is the schedule for API repository deletion?

J Hill January 28, 2020

I've executed a script to bulk delete several test repositories inside a test project using curl -v -X DELETE -H "Content-Type: application/json" -u "username:pass" https://bitbuckethost.somewhere.com/rest/api/1.0/projects/projectname/repos/ -d '{"name":"'$name'"}'

I know, I know - the 1.0 API is deprecated. We're getting there. :-) The calls did not return any errors, so my assumption is that they worked correctly. The API documentation states that this will "Schedule the repository matching the supplied projectKey and repositorySlug to be deleted."  My question: what is that schedule? When can I start checking to see if the repositories are, in fact, deleted?

1 answer

0 votes
J Hill January 28, 2020

nevermind - found the issue with my curl command. technically not an error, but not getting an actual result either. correct curl command:

curl -v -X DELETE -H "Content-Type: application/json" -u "username:pass" https://bitbuckethost.somewhere.com/rest/api/1.0/projects/projectname/repos/name

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events