Type to search.

Uninstall Elastic Cloud on Kubernetes

ECK

Elastic Cloud on Kubernetes extends Kubernetes orchestration capabilities to allow you to deploy and manage components of the Elastic Stack.

Availability

  • Generally available

    This functionality is generally available and ready for production usage.

This documentation corresponds to the latest patch available for each minor version. If you're not using the latest patch, check the release notes for changes.

This page provides instructions for uninstalling Elastic Cloud on Kubernetes, including removing all Elastic resources and the Elastic Cloud on Kubernetes operator from your cluster.

To uninstall the operator:

  1. Remove all Elastic resources in all namespaces:

    Shell
    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:

    Shell
    kubectl delete -f https://download.elastic.co/downloads/eck/3.5.0/operator.yaml
    kubectl delete -f https://download.elastic.co/downloads/eck/3.5.0/crds.yaml
    
Warning

Deleting CRDs will trigger deletion of all custom resources (Elasticsearch, Kibana, APM Server, Beats, Elastic Agent, Elastic Maps Server, and Logstash) in all namespaces of the cluster, regardless of whether they are managed by a single operator or multiple operators.