Uninstall OneAgent from Kubernetes

Read below how to uninstall OneAgent from Kubernetes.

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 deleting 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.