Applicable to:
- Plesk for Linux
Question
How to uninstall Plesk for Linux?
Answer
Warning: After Plesk uninstallation, some system services may stop working due to their close integration with Plesk. Before removing Plesk for Linux, it is recommended to create a server snapshot to have a system restore point.
Note: Due to a Plesk Installer bug with ID PI-498, it is not possible to remove Plesk installed on Debian/Ubuntu-based distributions:
- Debian 10
- Debian 9
- Debian 8
- Ubuntu 20.04
- Ubuntu 18.04
- Ubuntu 16.04
As a workaround, it is recommend to redeploy a server from scratch.
To remove Plesk from CentOS/RHEL-based distributions, follow these steps:
-
Connect to a Plesk server via SSH.
-
Run the following command to remove Plesk and all its components:
# plesk installer --remove-everything
Comments
14 comments
Hello,
Thank you for the feedback.
I have modified the article. Extra "." symbol was defined in the command. Pleease try now with the following command after uploading file via ftp:
# unzip plesk_remove.zip
after connecting to the server, as root user, when I try executing the command plesk installer select-product-id plesk --remove-everything I get an error message, saying
"ERROR: Unknown command: select-product-id"
what am I doing wrong?
Thank you
Hello, @Daniel Eliseo Wilson!
Thank you for telling us, there was a typo there indeed, it should be --select-product-id, like:
# plesk installer --select-product-id plesk --remove-everything
I have adjusted the article accordingly.
ok thank you very much. I now no longer get the error message mentioned above, but at a certain point, after several lines of code, I get the following message:
Detecting installed product components.
ERROR: An internal error occured in auto-installer, rev.03ca0f11741a+ SourceManager.cpp, line 198.
Not all packages were installed.
Please contact product technical support.
exit status 1
And Plesk still remains installed
Are you able to help me with this
Thank you very much
@Daniel,
try executing 'export LC_ALL=C' before starting AI. Make sure system package manager is correctly configured before AI starts and have no issues with dependencies.
It doesn't work because Plesk presenting following error:
....... >> snip << ......
Reading package lists...
Warning: not connected 'contrib' repository section
Detecting installed product components.
ERROR: An internal error occured in Plesk Installer 3.22.14, revision cef153794d9f, installer/SourceManager.cpp, line 196.
Not all packages were installed.
Please contact product technical support.
exit status 1
....... >> snip << ......
greetings
bluecon
Hi @bluecon,
Look like the "contrib" repository is missing in the repolist
It is required to add it
E.g. for Debain 8, open the "/etc/apt/sources.list" file via any text editor and add the "contrib" to it:
Hello,
Please let me know how to uninstall Plesk from Ubuntu 18.4 WITHOUT rebuilding the server. Is there any script or something else? Mayby it is possible to remove it manually anyhow?
Hello @Valeria Lyakhova,
Please let me clarify that there is no script which allows deleting Plesk on Ubuntu/Debian OSes.
Re-deploying the server is the only supported scenario.
Hello,
are you kidding, when will be this fixed? You asking to reinstall everything to get a buggy software out of my system? This is not called a workaround, it is called impudence.
Best Regards
Markus
Hello @Markus,
Thank you for the feedback.
As I understand, before the need to uninstall Plesk you've had a technical issue with it.
Could you, please, provide more information about the issue you've had? Maybe my colleague or I will be able to provide a solution.
Also, you may create a request to Plesk Technical Support.
Currently, there is no exact ETA regarding the fix for PI-498. However, it's recommended to not to install additional software on Plesk server as this software may conflict with one of Plesk components. Feel free to share your scenario.
This work for me. try this.
I tested it twice, maybe you should do this multiple times because it doesn't always remove all packages of Plesk.
Open the installer
go forward where u select the packages. Select your packages but unselect Plesk.
only press ENTER... select with (F) doesn't work at my installer.
It removes all the packages and Plesk on my Ubuntu Server 18.04
---
The installer installs always the Obsidian Version.. I am not sure that it worked on the Onyx Version.
Juri Derewjanko
This actually worked. At least as far as possible. Later I used "dpkg -l" to display a list with the remaining packages. Just export the list and remove each Plesk package with "apt-get --purge remove plesk-name_of_package".
@support it's really a shame that re-deployment is supposed to be a "workaround". My server also runs other services that are used productively. Migration here would be very inconvenient and should only be done when really necessary, not for something of uninstalling a software. Hope you get fix this bug so that we can easly deinstall your product.
Please sign in to leave a comment.