Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove all Gitlab repository?

I have created several repositories in GitLab.Now I want to delete or remove all repository at once. How can I do this? is there any API available?

like image 281
Harsh Patel Avatar asked Jan 02 '18 06:01

Harsh Patel


People also ask

How do I delete all contents from a GitHub repository?

Browse to the directory in your repository that you want to delete. In the top-right corner, click , then click Delete directory. Review the files you will delete. At the bottom of the page, type a short, meaningful commit message that describes the change you made to the file.

How do I archive a GitLab repository?

Open the settings in the project settings under General. Now under Advanced select the setting "Expand". Here you will find the item "Archive project".


1 Answers

First you list all projects, get a list of IDs and loop over the list: for every project id you remove the project.

You can use a GitLab client (an API wrapper), they exist for almost any language.

like image 162
phd Avatar answered Sep 29 '22 21:09

phd