Uninstall SSM Agent from macOS instances
macOS doesn't natively support uninstallation of PKG
files.
To uninstall Amazon Systems Manager Agent (SSM Agent) from an Amazon Elastic Compute Cloud (Amazon EC2) instance for
macOS, you can use the Amazon managed script from the following location.
https://github.com/aws/amazon-ssm-agent/blob/mainline/Tools/src/update/darwin/uninstall.sh