Delete a repository via API

I went through the API documenataion at https://docs.gitlab.com/ee/api/projects.html

However it doesn’t have an API to delete a project. What’s the API we should be using for project deletion?

The information you’re looking for is at https://docs.gitlab.com/ee/api/members.html#remove-a-member-from-a-group-or-project

That’s not what I’m looking for. I’m looking for the api to delete a project not members.

My apologies. I meant to give you this: https://docs.gitlab.com/ee/api/projects.html#remove-project

Thanks for the information. That worked!

I’m having trouble with deleting a repository using NAMESPACE/PROJECT_NAME. However it works with the project id.

Below is the curl command used to delete the repo

curl -X DELETE -v https://gitlab.com/api/v3/projects/anuruddha/sample123?private_token=abcde

And the response is

{“error”:“404 Not Found”}

curl -H “Content-Type: application/json” -H “PRIVATE-TOKEN: XXXXXXXXXXXXX” -X DELETE “https://git.lab.com/api/v4/projects/groupname%projectname