Delete a Keycloak service
Delete non protected Keycloak instance
If you do not need your Keycloak service anymore, you can delete it in the same way as you would with any other object in your cluster:
$ oc delete vshnkeycloak.vshn.appcat.vshn.io keycloak-app1-prod
|
Non-reversible operation
If you delete the instance from the cluster, it will be deleted together with all of its data and backups! |
Delete protected Keycloak instance
A Keycloak instance that is protected from deletion cannot be deleted right away. First disable deletion protection then delete the instance.
-
Disable deletion protection:
$ oc edit vshnkeycloak.vshn.appcat.vshn.io keycloak-app1-prodapiVersion: vshn.appcat.vshn.io/v1 kind: VSHNKeycloak metadata: name: keycloak-app1-prod namespace: prod-app spec: parameters: security: deletionProtection: false (1) writeConnectionSecretToRef: name: keycloak-creds1 Make sure the parameter is set to false -
Delete the instance
$ oc delete vshnkeycloak.vshn.appcat.vshn.io keycloak-app1-prodNon-reversible operationIf you delete the instance from the cluster, it will be deleted together with all of its data and backups!