9951 explained code solutions for 126 technologies


amazon-redshiftHow do I delete an Amazon Redshift cluster?


To delete an Amazon Redshift cluster, you must first delete any existing snapshots and then delete the cluster itself.

  1. Delete any existing snapshots:
aws redshift delete-cluster-snapshot --snapshot-identifier <snapshot-identifier>

The output will be a JSON response confirming the deletion of the snapshot.

  1. Delete the cluster itself:
aws redshift delete-cluster --cluster-identifier <cluster-identifier>

The output will be a JSON response confirming the deletion of the cluster.

Once both of these steps have been completed, the Amazon Redshift cluster will be deleted.

Helpful links

Edit this code on GitHub