Remove Gitlab from Ubuntu 16.04

Uninstall gitlab
To remove just gitlab package itself from Ubuntu 16.04 (Xenial Xerus) execute on terminal:

sudo apt-get remove gitlab

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.

sudo apt-get remove --auto-remove gitlab

Purging gitlab
If you also want to delete configuration and/or data files of gitlab from Ubuntu Xenial then this will work:

sudo apt-get purge gitlab

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

sudo apt-get purge --auto-remove gitlab

Link