I have created several repositories in GitLab. One of those was for testing purposes and has some commits and branches. I want to delete or remove this repository. How can I do this?
19 Answers
- Go to the project page
- Select "Settings"
- Select the "General" section (you must be in the repository you want to delete it)
- If you have enough rights, then at the bottom of the page will be a button for "Advanced settings" (i.e. project settings that may result in data loss) or "Remove project" (in newer GitLab versions)
- Push this button and follow the instructions
This is only available for admins/owner. As a mere project maintainer, you do not see the "Remove project" button.
12 Comments
It is just at the bottom of your project settings
New version
URL: https://gitlab.com/{USER_NAME}/{PROJECT_NAME}/edit
Path: Settings → Advanced → Expand → Remove project
This is only available for admins/owner. As a mere project maintainer, you do not see the "Remove project" button.
2 Comments
As of June 2016, click the settings cog in the top right corner and click edit project at the bottom of the list. Then, scroll to the bottom of the page to the Remove project section.
This is only available for admins/owner. As a mere project maintainer, you do not see the "Remove project" button.
3 Comments
Goto
Setting->General
Scroll then you can see the last option "Advanced" click on the (Expand). click on the "Delete Project"
3 Comments
To remove a project, you have to be the owner of this project, or the administrator of GitLab. Otherwise, you can only see "Rename project" but no "Remove project".
Note that: the creator project is not always the owner of the project. If the project is in a project-group, and the project-group is created by another one, then the owner is the creator of the project-group by default.
You can find the owner's name of the project in the page Settings → Members.
Comments
This is taken from feb 2018
Follow the following test
- Gitlab Home Page
- Select your projects button under Projects Menus
- Click your desired project
- Select Settings (from left sidebar)
- Click Advanced settings
- Click Remove Project
Or Click the following Link
Note : USER_NAME will replace by your username
PROJECT_NAME will replace by your repository name
https://gitlab.com/USER_NAME/PROJECT_NAME/edit
click Expand under Advanced settings portion
Click remove project bottom of the page
Comments
As of September 2017,
- Click on your project.
- Select Settings in the top most corner.
- Scroll down the page and click on Expand in front of the Advanced settings.
- Scroll down the page and click on the Remove project button.
- Type your project name in the text box and click on Confirm.
1 Comment
As of October 2017:
1. In the list of your projects, click on the project you want to delete;
2. In the left sidebar, click on the 'Setting' button;
3. Locate the 'Advanced settings' section and click on the related 'Expand' button;
4. At the bottom you'll find the 'Remove Project' button, click it;
5. Type the name of the project inside the text input and Confirm.
Comments
As per 2018-01-13:
Do as follows:
- Click on the project you want to delete.
- Click Settings in the right bottom corner.
- Locate the Advanced settings section and click on the 'Expand' button
- Then scroll down the page and click on the Remove Project button.
- Type your project name. Note: The removed project cannot be restored! And click on Confirm.
- Then the project will be deleted and soon a 404 page error will be displayed for that project.
1 Comment
2022 Update:
https://gitlab.com/dashboard/projects
Be on to the deleted Project page → Settings → General → Advanced → Delete project.
It will ask for the confirmation of the project name and once entered, choose - "Yes, delete".
The user must have privileges to do so!
Comments
- Gitlab home page
- Select your projects button under the Projects menu
- Click your desired project
- Select Settings (from left sidebar)
- Click Advanced settings Expand the Advanced settings this will be middle of the page
- Click Remove
- Project in the modal: write your project name
I hope you can successfully remove your project.
Comments
For the 2021 GitLab version
- Go to the project page.
The URL look like this.
https://gitlab.com/<username>/<project name> - Select "Settings" in the left sidebar
- Select the "General" section (you must be in the repository you want to delete to delete it)
- If you have enough rights, then at the bottom of the page will be the section named "Advanced". Then Click the "Expand" button.
- Scroll down in the "Advanced" section, then click the "Delete project" button.
- Put and confirm the repository name in the popup, then click the "Yes, delete project" button.
Comments
- Click on the icon "admin area"
- Click on the link "project[number]"
- Click on the button Delete
Comments
As of today, using the GitLab API v4, you can delete a project with the following cURL request:
curl -X DELETE --header "PRIVATE-TOKEN: <personal-access-token>" https://<gitlab-host>/api/v4/projects/<project-id>
Where:
personal-access-tokenis generated on the User settings/Access tokens page with API scope,gitlab-hostis your self-hosted GitLab domain orgitlab.com,project-idis at the top of the front page of your repository.
If the request is successful, you should see the following response:
{"message":"202 Accepted"}






