WHM plugins can include uninstallation scripts, or system administrators can remove them manually. Uninstallation scripts should perform all of the same actions as manual uninstallation.
cPanel plugin requirements and WHM plugin requirements are not identical. For information about cPanel plugins, read our Guide to cPanel Plugins documentation.
Uninstall a plugin manually
To uninstall or remove a plugin from a cPanel & WHM server, perform the following steps:
Manually remove all of the plugin's files except for the AppConfig configuration file.
We recommend that plugin developers store most plugin files in subdirectories within the /usr/local/cpanel/3rdparty/ directory. However, many plugins also use or create files outside of this directory.
For help to find and remove plugin files, system administrators should contact the plugin's developers.
If you do not remove the plugin's files, the plugin will continue to appear in WHM's interface.
Run the following command, where app represents either the absolute path to the application's AppConfig configuration file, or the application's internal name:
This script unregisters applications with AppConfig and removes the application's configuration file from the /var/cpanel/apps/ directory.
This script only removes third-party applications. It cannot remove applications that ship with cPanel & WHM.
Example uninstallation script
The following example BASH uninstallation script performs the necessary actions to uninstall a WHM plugin:
cPanel, WebHost Manager, and WHM are registered trademarks of cPanel, L.L.C. for providing its computer software that facilitates the management and configuration of Internet web servers. ®2020 All rights reserved.