Skip to content

Remove GCP environments

You can remove a Google Cloud Platform environment from Sophos Cloud Optix.

You need to remove components from Sophos Cloud Optix first, then from Google Cloud Platform (GCP).

If the relevant Sophos Cloud Optix account has been removed, or you don't have access to Sophos Cloud Optix, follow the instructions to remove an environment with a script.

Manual method

You can use these instructions if you have access to the Sophos Cloud Optix account for the environment.

To remove your GCP environment, do as follows:

  1. Sign in to your Sophos Cloud Optix account.
  2. Click Environments.
  3. In the list, find the environment you want to remove and click the trashcan icon Trashcan icon..
  4. Copy the commands shown. You'll need them later in GCP.
  5. Confirm that you want to continue. Click OK.
  6. In GCP:
  7. Sign in to your GCP console.
  8. Open Google Cloud Shell.
  9. Paste and run the first command that you copied earlier.
  10. Paste and run the second command.

    Wait for the script to finish.

To check that Sophos Cloud Optix components have been removed from your GCP environment, look for resources with “Avid” in the name. If you find any, delete them manually.

Use a script

You can download and run a Google Cloud Shell script to remove environments from GCP.

You must only use this method if you can't access Sophos Cloud Optix or the relevant Sophos Cloud Optix account.

  1. Sign in to GCP.
  2. Select the project you want to remove.
  3. Open Google Cloud Shell.
  4. Enter the following command to download the SCO script:

    curl -O "https://avidcore.s3-us-west-2.amazonaws.com/gcp/delete_script_gcp.sh"

  5. Enter the following command to run the script:

    REMOVE_ALL=true bash ./delete_script_gcp.sh

To check that Sophos Cloud Optix components have been removed from your GCP environment, look for resources with “Avid” in the name. If you find any, delete them manually.