Deleting PostgreSQL instance

When the Cluster CR is deleted, the Postgres Operator deletes the PostgreSQL cluster and its related resources.

Procedure

To delete a PostgreSQL cluster instance in an OpenShift or Kubernetes environment, run the command:
oc delete clusters.pg.ibm.com my-postgres -n postgres-namespace
Replace my-postgres with your actual cluster name.
Tip: Deleting the cluster permanently removes all database data stored on PVCs. Ensure to create a backup before performing the delete operation.