Question

How do i Fully Uninstall glashfish from my Droplet?

Posted January 16, 2017 1.7k views
UbuntuDigitalOceanLinux CommandsUbuntu 16.04

I have install glassfish in my ubuntu droplet, now when i start the glashfish server using ssh command its closes the session when i close the ssh. so i would like to uninstall and install again with the list of step i have found in other sites; or if anyone can help me to overcome this challenge.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer

@tajmasindi

The easiest method would be to use apt, by running:

sudo apt-get remove glassfish-* \
&& sudo apt-get purge glassfish-*

It’ll ask you to confirm the removal each time. You can also auto-answer yes by running:

sudo apt-get -y remove glassfish-* \
&& sudo apt-get -y purge glassfish-*

What the above commands do is:

1). Removes the installation
2). Removes the configuration left behind.

Submit an Answer