Search code examples
gitgitlabgitlab-api

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?


Solution

  • 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.