Uninstall OneAgent from Google Kubernetes Engine clusters

To remove OneAgent from Google Kubernetes Engine clusters, you need to remove OneAgent custom resources and clean-up all remaining OneAgent Operator specific objects.

$ kubectl delete -n dynatrace oneagent --all
$ kubectl delete -f https://raw.githubusercontent.com/Dynatrace/dynatrace-oneagent-operator/master/deploy/kubernetes.yaml

(Optional) After you delete OneAgent Operator, the OneAgent binary remains on the node in an inactive state. To uninstall it completely, execute the uninstall.sh script and delete logs and configuration files. See Linux related information.