How to Uninstall xampp in Ubuntu using Terminal

How to Uninstall xampp in Ubuntu using Terminal

To uninstall xampp completely, you need to type sudo -i cd /opt/lampp ./uninstall and rm -r /opt/lampp commands on the ubuntu terminal window and hit enter.

How to Uninstall xampp in Ubuntu using Terminal

Here are some solutions to completely uninstall xampp in Linux ubuntu 20.04/22.04 system using terminal or command prompt:

  • Solution 1 – Using /opt/lampp/uninstall
  • Solution 2 – -i cd /opt/lampp ./uninstall
  • Solution 3 – rm -r /opt/lampp to uninstall xampp ubuntu completely

Solution 1 – Using /opt/lampp/uninstall

First of all, open terminal or command prompt and execute the following command it to remove xampp from linux ubuntu system:

sudo /opt/lampp/uninstall

Solution 2 – -i cd /opt/lampp ./uninstall

If there is a problem with the first solution or does not completely delete xampp from ubuntu. So you can uninstall xampp by executing this command on the command line:

sudo -i cd /opt/lampp ./uninstall

Solution 3 – rm -r /opt/lampp to uninstall xampp ubuntu completely

In this third solution, you can also remove xampp from ubuntu with the command given below:

sudo rm -r /opt/lampp

If you’re looking to set up XAMPP on Ubuntu via terminal or command line, be sure to explore this resource => How to install XAMPP on Ubuntu 22.04 using Terminal.

Here is the video guide to completely remove xampp on ubuntu;


Through this tutorial, you have learned some easy ways to uninstall xampp from linux ubuntu using command prompt or terminal.

Recommended Linux Ubuntu Tutorials


Greetings, I'm Devendra Dode, a full-stack developer, entrepreneur, and the proud owner of My passion lies in crafting informative tutorials and offering valuable tips to assist fellow developers on their coding journey. Within my content, I cover a spectrum of technologies, including PHP, Python, JavaScript, jQuery, Laravel, Livewire, CodeIgniter, Node.js, Express.js, Vue.js, Angular.js, React.js, MySQL, MongoDB, REST APIs, Windows, XAMPP, Linux, Ubuntu, Amazon AWS, Composer, SEO, WordPress, SSL, and Bootstrap. Whether you're starting out or looking for advanced examples, I provide step-by-step guides and practical demonstrations to make your learning experience seamless. Let's explore the diverse realms of coding together.

Leave a Reply

Your email address will not be published. Required fields are marked *