-
Notifications
You must be signed in to change notification settings - Fork 0
/
MindManager_Uninstaller.sh
22 lines (18 loc) · 888 Bytes
/
MindManager_Uninstaller.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
# Check if MindManager is installed
if [ ! -d "/Applications/MindManager.app" ]; then
echo "MindManager is not installed."
fi
# Get the current user's username
USERNAME=$( scutil <<< "show State:/Users/ConsoleUser" | awk '/Name :/ && ! /loginwindow/ { print $3 }')
# Uninstall MindManager
echo "Uninstalling MindManager files..."
sudo rm -rf "/Applications/MindManager.app"
sudo rm -rf /Users/$USERNAME/Library/Preferences/com.mindjet.mindmanager*
sudo rm -rf /Users/$USERNAME/Library/Application\ Support/MindManager
sudo rm -rf /Users/$USERNAME/Library/Application\ Support/Mindjet
sudo rm -rf /Users/$USERNAME/Library/WebKit/com.mindjet.mindmanager*
sudo rm -rf /Users/$USERNAME/Library/HTTPStorages/com.mindjet.mindmanager*
sudo rm -rf /Users/$USERNAME/Library/Preferences/ByHost/com.mindjet.mindmanager*
echo "MindManager has been successfully uninstalled."
exit 0