Hi All,
We wanted to know what would be the simplest way to delete hundreds of Repostiories in a data centre. From the shared home directory can I just go and delete all the repository folders?
Thanks
Ram
Hey @Ramprasad Baliga you can use the REST API to perform that operation https://developer.atlassian.com/server/bitbucket/reference/rest-api/.
Sending a DELETE request to "/rest/api/1.0/projects/{projectKey}/repos/{repositorySlug}" resource is what might help you
https://docs.atlassian.com/bitbucket-server/rest/7.0.1/bitbucket-rest.html#idp171
Thanks,
Maciej
Hi Maciej,
Thanks for the response! I will check this out.
Regards
Ram
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.