I would like to clean up in gitlab projects. Is there any way to quickly remove old projects so that I do not have to click on a specific project one by one and then “Delete”. Let’s assume that I would like to delete projects that have not been edited for 3 years by people inactive in Gitlab. There are over 1000 projects.
Hi, you can do it using the API: Projects API | GitLab
In particular look at
last_activity_after option so that you can filter. Obviously because of the amount of data being returned, you’ll need to look at pagination and the amount of results being returned on the page. There is a section in the above link relating to pagination.
Once you have the results, you can use the delete project API call.