#!/bin/bash ########################################################################## # Shellscript : Uninstall Skype for Business # Author : Andreas Vogel, macenterprise gmbh 27.05.2019 # Source : https://docs.microsoft.com/de-de/SkypeForBusiness/troubleshoot/server-install-or-uninstall/clean-uninstallation ########################################################################## # Variable user=$(stat -f '%u %Su' /dev/console | cut -d ' ' -f 2) # Falls App noch läuft, wird diese beendet osascript -e 'quit app "Skype for Business"' # App wird gelöscht rm-rf /Applications/Skype\ for\ Business.app # Daten die gelöscht werden müsse rm-rf /Users/$user/Library/Containers/com.microsoft.SkypeForBusiness/ rm-rf /Users/$user/Library/Logs/LwaTracing rm-rf /Users/$user/Library/Saved\ Application\ State/com.microsoft.SkypeForBusiness.savedState rm-rf /Library/Internet\ Plug-Ins/MeetingJoinPlugin.plugin/