Remove Gitlab from Ubuntu 16.04

Uninstall gitlab
To remove just gitlab package itself from Ubuntu 16.04 (Xenial Xerus) execute on terminal:
[code]
sudo apt-get remove gitlab
[/code]

Uninstall gitlab and it’s dependent packages
To remove the gitlab package and any other dependant package which are no longer needed from Ubuntu Xenial.
[code]
sudo apt-get remove –auto-remove gitlab
[/code]

Purging gitlab
If you also want to delete configuration and/or data files of gitlab from Ubuntu Xenial then this will work:
[code]
sudo apt-get purge gitlab
[/code]

To delete configuration and/or data files of gitlab and it’s dependencies from Ubuntu Xenial then execute:

[code]
sudo apt-get purge –auto-remove gitlab
[/code]

Link