What do you think? Discuss, post comments, or ask questions at the end of this article [More about me]

I had to fully uninstall GitLab when I was debugging a few issues (which turned out to be a permissions problem on / of my apache2 reverse proxy setup for GitLab).  In any case, thought I'd document the uninstall process here.

Stop GitLab services

sudo gitlab-ctl stop

Uninstall and clean data generated by GitLab

sudo gitlab-ctl uninstall
sudo gitlab-ctl cleanse

Remove GitLab accounts

sudo gitlab-ctl remove-accounts

Remove GitLab package using dpkg

sudo dpkg -P gitlab-ee

Manually remove GitLab folders

After uninstalling you can safely remove the following GitLab folders:

/opt/gitlab/
/var/opt/gitlab/
/etc/gitlab/
/var/log/gitlab/

References

  1. https://askubuntu.com/questions/824696/is-it-fine-to-remove-the-opt-gitlab-directory-manually-after-removing-the-gitl