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