Using an AWS CLI script

You can remove an AWS environment with a script provided by Sophos.

This method is useful if you can't access the Sophos Cloud Optix console. Do as follows:

  1. From the AWS CLI download the script to your system.

    Enter the following command: curl -s "http://avidcore.s3-us-west-2.amazonaws.com/undo-add-account.sh" -o undo-add-account.sh

  2. Run the script using the command: bash undo-add-account.sh

The script removes the environment from Sophos Cloud Optix and removes the Sophos Cloud Optix resources from your AWS environment.