Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Easiest Way to delete hundreds of Repositories!

Ramprasad Baliga March 9, 2020

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

1 answer

0 votes
Maciej Adamczak
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 17, 2020

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

Ramprasad Baliga March 20, 2020

Hi Maciej,

Thanks for the response! I will check this out.

Regards

Ram

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events