This community has been helpful for me in setting up Jamf in our small 40 person company, so I wanted to give back with a script you may find helpful.
With the recent security and privacy issues around Zoom, our organization decided to ban Zoom from running on our corporate computers. SpaceX made that decision last week, and Google banned it as well this week.
While we can add Zoom to the restricted software in Jamf, it doesn't remove all the additional cruft that Zoom leaves behind. It also doesn't uninstall the software right away, it only removes it when a user attempts to start the software.
Zoom has an uninstaller built into the app, but it does not uninstall everything. I put together a script you can run both locally and as a policy on macOS devices. The script will report which files and folders it found and deleted after stopping the Zoom process and deleting the application. I recommend using this in addition to the restricted software in Jamf. This script to uninstall and keep things clean, and restricted software to prevent the application from getting installed again in the future.
I put the script up on Github in case anyone has any feedback or improvements, so we can keep everything centralized in one place. I hope it's helpful for all of you.