Uninstall the connector

To uninstall the connector, you can either run terraform destroy or have the resources destroyed automatically by the destroy.sh script. We recommend using the script, which automatically deletes all GCP components that are used for the connector.

The script also supports destroying resources in a specific region (other than the default one) or multiple regions. For example, if you have two separate installations in different GCP regions and you want to uninstall only one, run the script with the region name as an argument.

Before running the script, give the execute permission to the destroy.sh file.

chmod +x ./destroy.sh
./destroy.sh                   # destroy in the default region
./destroy.sh <region_name>     # destroy in a specific region

The logs are stored in the terraform-destroy.txt file. The install-<region>.log file is removed after destroying resources.