crm.enabled workload and the plugin-fees-helm chart for older application releases. These are legacy compatibility surfaces, not the Midaz v4 deployment model.
This guide walks you through fully removing a Midaz deployment from Kubernetes. helm uninstall removes the Helm-managed resources. What happens to the database volumes depends on the bundled subcharts, so read their storage settings before you run it.
What uninstall deletes and what survives
No chart resource carries a
helm.sh/resource-policy: keep annotation. Do not rely on Helm to protect any volume.Prerequisites
Before uninstalling, list the claims so that you know what exists:
midaz-plugins):
CRM is a module inside the
midaz-helm chart. You enable it with the crm values block. No CRM chart exists. You do not back it up or uninstall it separately.Uninstalling the Helm release
Run the following command to uninstall the Midaz Helm release:
Cleaning up persistent resources
PersistentVolumeClaims
List the claims that survived the uninstall:Deleting these PVCs permanently destroys the volume data, the ledger’s system of record. Make sure database backups are in place before running this command.
Secrets
helm uninstall does not remove secrets created outside the Helm release lifecycle (e.g., kubectl create secret). List all secrets in the namespace and identify any that you no longer need:
ConfigMaps
ConfigMaps created manually or by bootstrap jobs may also remain. List them:Namespace cleanup
When no resources remain inside the namespace, delete the namespace itself:
Deleting the namespace will forcefully remove any remaining resources inside it. If a resource is stuck in
Terminating state, you may need to remove its finalizers manually.Complete cleanup
For staging, evaluation, or CI environments where a full teardown is safe, the following script automates the entire process:
Data loss is permanent. Run this only in environments where you have confirmed backups or where data loss is acceptable (staging, evaluation, CI). Do not run this in production without a full backup and team sign-off. The script assumes a namespace that holds Midaz alone. It removes every claim, Secret and ConfigMap in that namespace.
midaz-cleanup.sh, make it executable (chmod +x midaz-cleanup.sh), and run it with ./midaz-cleanup.sh.
Production considerations
Uninstall plugins before the core release:
Related resources
- Deploy Midaz using Helm: Installation guide if you need to reinstall
- Upgrading Midaz and plugins via Helm: Upgrade and rollback procedures
- Troubleshooting: Diagnose issues before deciding to uninstall
- Midaz chart version compatibility: Current chart and application metadata

