#!/bin/bash
if [[ $EUID -ne 0 ]]; then
    echo "Run with sudo or root"
    exit 1
fi

rm -rf /Applications/Aspera\ Connect.app
rm -rf /Applications/Aspera\ Crypt.app
rm -rf /Library/Internet\ Plug-Ins/Aspera\ Web*

sudo find /Users 2>/dev/null -name "Aspera\ Connect.app" -exec rm -rf {} \;
sudo find /Users 2>/dev/null -name "Aspera\ Crypt.app" -exec rm -rf {} \;
sudo find /Users 2>/dev/null -name "Aspera\ Web*plugin" -exec rm -rf {} \;
