cPanel & WHM version 11.50 introduced the uninstall_plugin script, which eliminates the need to manually remove plugins. This file passes information to cPanel's dynamicui files when you uninstall your plugin. This method allows the user to uninstall a cPanel plugin.
To use this script to uninstall a plugin to cPanel, run the following command:
In this command, plugin_file represents the plugin installation file (a .tar.gz, .bzip, or .zip file, or an uncompressed directory), and theme represents the cPanel theme to uninstall from (paper_lantern or another valid theme on the server).
If you do not specify the --theme option and a theme, the script attempts to uninstall the plugin from the Paper Lantern theme only. If the compressed plugin installation file does not contain an install.json file, the uninstallation will fail.
Manually uninstall a plugin in 11.48 and earlier
In cPanel & WHM version 11.48 and earlier, an uninstall script does not ship with Paper Lantern.
To manually uninstall a plugin, perform the following steps:
Remove all of the files for the plugin that you want to uninstall.
Navigate to the /usr/local/cpanel/base/frontend/paper_lantern/dynamicui/ directory.
Delete the dynamicui_name.conf file, where name represents the name of the plugin to remove.
Delete the dynamicui_group.conf file, where group represents the name of the group that contains the plugin.
Run the /usr/local/cpanel/bin/rebuild_sprites --quiet script to rebuild the cPanel interface's sprites.
About cPanel Plugins
cPanel plugins add custom features to the cPanel interface.
Each cPanel theme has different requirements for cPanel plugins.
cPanel, WebHost Manager, and WHM are registered trademarks of cPanel, Inc. for providing its computer software that facilitates the management and configuration of Internet web servers. ®2017 All rights reserved.