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
Related articles