#!/usr/bin/bash

PLUGIN_DIR=/var/cpanel/plugins/comet-backup
PLUGINS_RESOURCES_DIR=/usr/local/cpanel/whostmgr/docroot/addon_plugins

# Remove plugin files.
/bin/rm -f $PLUGINS_RESOURCES_DIR/comet-backup.svg

# Remove locale cache files not provided by package
/bin/rm -rf $PLUGIN_DIR/locale

# Unregister the plugin with AppConfig.
/usr/local/cpanel/bin/unregister_appconfig $PLUGIN_DIR/whm-comet-backup.conf
