Delete Instance

Deleting an instance will not only remove the created CR resources but also delete the StatefulSet, Service, ConfigMap, Secret, PersistentVolumeClaim, and other resources created by RabbitMQ based on the CR resources.

Procedure

CLI
Web Console

If the instance has not been configured for persistence, or if you need to retain the instance's persistent data, execute the following command to delete the instance:

# delete rabbitmq instance directly
$ kubectl -n default delete rabbitmqclusters <Instance Name>

By default, deleting the instance will not remove the created PVC. You can use the following command to delete it:

$ kubectl -n default delete pvc -l app.kubernetes.io/component=rabbitmq,app.kubernetes.io/part-of=rabbitmq,app.kubernetes.io/name=<Instance Name>
ON THIS PAGE