#!/bin/sh

# This script will uninstall Thunderbird 2.0.0.14 that was installed using the
# thunderbird_install.sh script
# This script must be run as root with 755 permission
#
# Authored by Bob Nelson  admin@stchman.com
#

script_name="thunderbird_uninstall.sh"

# Script must run as root 
if [ $USER != "root" ]; then
	echo "You need to run this script as root."
	echo "Use 'sudo ./$script_name' then enter your password when prompted."
	exit 1
fi

# Remove the Thunderbird binaries
sudo rm -r -f /opt/thunderbird

# Remove the menu entry
sudo rm -f /usr/share/applications/thunderbird.desktop

# Remove the shortcut from the /usr/bin folder
sudo rm -f /usr/bin/thunderbird

# This install does not remove the mail, contacts, or filters from your profile
echo "If you want to remove your email then remove the ~/.thunderbird folder manually"

