I have googled a while now and could not find a solution that fits the current UI of Gitlab. I am trying to remove a repository I previously created on Gitlab. I navigate to edit project by clicking the settings cog on the right. After scrolling down to the bottom I can not find a section called remove project . Instead, I only see rename project . I should have the proper rights because I am the master of the project.
Any ideas?
It seems like master privilege is not sufficient. An owner privilege is required to perform such actions.
finally Remove
(Most) of the other answers work.
But: When you are are running a self-hosted gitlab they are not complete .
The repo will not deleted, but only marked as deleted and hidden .
The full solution:
(This is for gitlab 14.8.4, other versions might have some tiny differences)
First let the site forget about it:
Gitlab will mark it as deleted and after a couple of minutes a part, but not everything , will be "really" deleted.
After waiting a couple of minutes delete everything that has not been completely deleted:
find /var/opt/gitlab/ | perl -ne 'print "$1\n" if(/^.*hashed\/(.{5}).*\+deleted\.git$/)' | sort | uniq
e6/29
for example) ls /var/opt/gitlab/git-data/repositories/+gitaly/state/@hashed/e6/29
rm -rf /var/opt/gitlab/git-data/repositories/+gitaly/state/@hashed/e6/29 rm -rf /var/opt/gitlab/git-data/repositories/@hashed/e6/29 rm -rf /var/opt/gitlab/gitlab-rails/shared/tmp/gitlab_exports/@hashed/e6/29
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.