Cleaning up application resources
To clean up the GCP image definitions that you created during this section, run the following script. Make sure that your environment is correctly configured.
This script will delete all image definitions in your project, which is an irreversible operation. |
$ cat <<EOF > cleanup-gcp-images.sh
#!/bin/bash
set -euo pipefail
echo "Deleting images in GCP project: \${ANJ_PROJ}"
for image in \$(anjuna-gcp-cli disk list -p \${ANJ_PROJ} | awk -F'[][]' '{print \$3}' | cut -d' ' -f2); do
echo "Deleting '\${image}'..."
anjuna-gcp-cli disk delete -i \${image} -p \${ANJ_PROJ};
done
EOF
After creating the script file, make it executable and run it:
$ chmod +x cleanup-gcp-images.sh
$ ./cleanup-gcp-images.sh
To uninstall the Anjuna Kubernetes Toolset, refer to Uninstall the Anjuna Kubernetes Toolset.