Uninstall Elastic Cloud on Kubernetes

To uninstall the operator:

  1. Remove all Elastic resources in all namespaces:
    			kubectl get namespaces --no-headers -o custom-columns=:metadata.name \
      | xargs -n1 kubectl delete elastic --all -n
    
    		
    This deletes all underlying Elastic Stack resources, including their Pods, Secrets, Services, and so on.
  2. Uninstall the operator:
    			kubectl delete -f https://download.elastic.co/downloads/eck/2.16.1/operator.yaml
    kubectl delete -f https://download.elastic.co/downloads/eck/2.16.1/crds.yaml