A shell script to deep uninstall Microsoft Office for Mac 2011/2016/2019/2022/365
#To use this script:
Save it as a file with a name like uninstall_office.sh. Open Terminal and navigate to the directory where you saved the script. Run the script with administrator privileges: sudo bash uninstall_office.sh Enter your administrator password when prompted. Follow the prompts to remove app icons from the Dock and restart your Mac.