How to remove PhpStorm on Ubuntu

Matt Larry

With many useful features, PhpStorm is one of the most popular IDEs for PHP developers out there. However, there's currently no Aptitude package for PhpStorm, to install this software you need to download the tar file and install it manually. This usually makes it hard to remove the software from your computer. In this post, I'll share you how to remove PhpStorm manually.

Step 1: Find Path of PhpStorm's Executable File

The first step is to find the path of executable file that start PhpStorm. To do this, open up the terminal and run the following command:

$ which phpstorm

Step 2: Get Actual Path of Executable File

If you happened to setup the command to start PhpStorm in terminal then you will see the full path to phpstorm executable file appeared after running the above command.

If you didn't see anything then you should run this command:

$ find ./ -name 2>/dev/null

You'll see the similar result:


Then /opt/PhpStorm-163.9735.1 will be the folder that PhpStorm was installed.

If you did see the result from step 1 (for me, it's /usr/local/bin/phpstorm) then this file is a symbolic that links to other .sh file. To get the path of this .sh file run the following command:

$ ls -la /usr/local/bin/phpstorm

You'll get the real path to the .sh file that start the IDE. On my machine, it looks like the following:

lrwxrwxrwx 1 root root 40 Th12 15 15:06 /usr/local/bin/phpstorm -> /opt/PhpStorm-163.9735.1/bin/*

Then the /opt/PhpStorm-163.9735.1/ will be the IDE's installed folder.

Step 3: Remove PhpStorm's Installed Folder

The last step to remove PhpStorm is to remove the installed folder that we have from previous steps. To do this run the following command:

$ sudo rm -rf /opt/PhpStorm-163.9735.1/

Type in the password and hit Enter to finish the removal process.