#!/bin/bash
# Uninstall script for CLeanbackups by NDC Host, Inc.

echo "Uninstalling Cleanbackups..."

/bin/rm -rf /usr/local/cpanel/whostmgr/docroot/cleanbackups/
/bin/rm -rf /var/cpanel/cleanbackups/
/bin/rm -f /usr/local/cpanel/whostmgr/docroot/cgi/addon_cleanbackups.cgi
/bin/rm -f /etc/cron.d/cleanbackups.cron
/usr/local/cpanel/bin/unregister_appconfig cleanbackups

echo "Uninstall Complete! Thank you for using our script(s)."
echo "Visit www.ndchost.com for all of your hosting needs and additional scripts!"
