Liutas
Liutas

Reputation: 5783

How to remove a Gitlab project?

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?

Upvotes: 391

Views: 796593

Answers (19)

mttinor
mttinor

Reputation: 21

  • Click on the Project you want to delete.
  • Click Setting in the right bottom corner.
  • click general then go to advance
  • than remove the project

Upvotes: 2

Harsukh Makwana
Harsukh Makwana

Reputation: 4494

Goto

Setting->General 

Scroll then you can see the last option "Advanced" click on the (Expand). click on the "Delete Project"

enter image description here

Upvotes: 27

marcell
marcell

Reputation: 1528

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-token is generated on the User settings/Access tokens page with api scope,
  • gitlab-host is Your self-hosted gitlab domain or gitlab.com,
  • project-id is at the top of the frontpage of your repository.

If successful request You should see the following response:

{"message":"202 Accepted"}

Upvotes: 0

Egon Olieux
Egon Olieux

Reputation: 759

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.

Upvotes: 34

Rizerzero
Rizerzero

Reputation: 1170

āœ… Just at the bottom of your project settings .āš”šŸ’”

New version new version

URL : https://gitlab.com/{USER_NAME}/{PROJECT_NAME}/edit

  • Advanced : expand
  • Remove project

This is only available for admins/owner. As a mere project maintainer, you do not see the "Remove project" button.

Upvotes: 77

0x4a6f4672
0x4a6f4672

Reputation: 28245

  1. Go to the project page
  2. Select "Settings"
  3. Select the "General" section (you must be in the repository you want to delete it)
  4. 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)
  5. 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.

Upvotes: 579

lbanhara
lbanhara

Reputation: 1

click on the icon "admin area" click on the link "project[number]" click on the button Delete

enter image description here

enter image description here

Upvotes: 0

krishdd2
krishdd2

Reputation: 131

2022 Update:

https://gitlab.com/dashboard/projects

Be on to be 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!

Upvotes: 2

Saurabh Mistry
Saurabh Mistry

Reputation: 13669

  1. goto Settings -> General

enter image description here

  1. scroll down to Advanced & click Expand button enter image description here

  2. after clicking expand button , scroll down to bottom of the page enter image description here

  3. Click Delete Project Red Button , a popup will show up enter image description here

  4. Type your Project Repository name and Click Yes Delete Project button

Upvotes: 4

BlueChip
BlueChip

Reputation: 774

For the 2021 Gitlab version

  1. Go to the project page. URL look like this. https://gitlab.com/<username>/<project name>
  2. Select "Settings" in the left sidebar
  3. Select the "General" section (you must be in the repository you want to delete to delete it)
  4. If you have enough rights, then at the bottom of the page will be the section named "Advanced". Then Click the "Expand" button.
  5. Scroll down in the "Advanced" section, then Click the "Delete project" button.
  6. Put and confirm the repository name in the popup, then Click the "Yes, delete project" button.

Upvotes: 1

Kazi Rabbi Hassan
Kazi Rabbi Hassan

Reputation: 161

  • 1.Gitlab Home Page
  • 2.Select your projects button under Projects Menus
  • 3.Click your desired project
  • 4.Select Settings (from left sidebar)
  • 5.Click Advanced settings Expand the Advanced settings this will be middle of the page
  • 6.Click Remove
  • 7.Project In the Modal write your project name

Hope you can Successfully remove your project. Happy Coding :)

Upvotes: 1

Diwas Poudel
Diwas Poudel

Reputation: 847

As per January 13,2018 Do as follow:

  1. Click on Project you want to delete.
  2. Click Setting on right buttom corner.
  3. Locate the Advanced settings section and click on the 'Expand' button
  4. Then Scroll down the page and click on the Remove Project button.
  5. Type your project name. Note : Removed project CANNOT be restored! and click on confirm.
  6. Then project will be deleted and soon 404 page error will be displayed for that project.

Upvotes: 5

reducing activity
reducing activity

Reputation: 2254

It is hidden in Setting menu, section general (not repository!) at https://gitlab.com/$USER_NAME/$PROJECT_NAME/editand it again hidden in a section "Advance settings"- you need to click a "expand" button.

Upvotes: 1

Giridhar Reddy
Giridhar Reddy

Reputation: 45

Click on Project settings which you want to delete-->General project settings-->Expand-->Advanced settings-->Remove project.

Upvotes: 3

Shourob Datta
Shourob Datta

Reputation: 2072

This is taken from feb 2018

Follow the following test

  1. Gitlab Home Page
  2. Select your projects button under Projects Menus
  3. Click your desired project
  4. Select Settings (from left sidebar)
  5. Click Advanced settings
  6. 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

enter image description here

Upvotes: 12

seedjyh
seedjyh

Reputation: 401

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.

Upvotes: 18

Reza Mirzaei
Reza Mirzaei

Reputation: 169

  1. Open project
  2. Setting (In the left sidebar)
  3. General
  4. Advanced Setting (Click on Expand)
  5. Remove Project (Bottom of the Page)
  6. Confirm (By typing project name and press Confirm button)

Upvotes: 9

ainos984
ainos984

Reputation: 479

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.

Upvotes: 6

Pulkit Aggarwal
Pulkit Aggarwal

Reputation: 2672

As of September 2017,
1. Click on your project.
2. Select setting on the top most corner.
3. Scroll down the page and click on expand in front of advance setting.
4. Scroll down the page and click on the Remove Project button.
5. Type your project name in text box and click on confirm.

Upvotes: 11

Related Questions