Uninstall Dynatrace OneAgent on Windows/AIX/Linux/Solaris/zOS/Kubernetes
Here's how to Uninstall Dynatrace OneAgent on Windows/AIX/Linux/Solaris/zOS/Kubernetes.
i. To uninstall Dynatrace OneAgent on Solaris, you can follow these steps:
Log in to the server as root or an administrator user.
Stop the Dynatrace OneAgent service.
Remove the Dynatrace OneAgent installation directory.
Remove the Dynatrace OneAgent configuration files.
Remove the Dynatrace OneAgent log files.
Restart the server.
Here are the steps in more detail:
Stop the Dynatrace OneAgent service.
# service dynatrace-oneagent stop
Remove the Dynatrace OneAgent installation directory.
# rm -rf /opt/dynatrace/oneagent
Remove the Dynatrace OneAgent configuration files.
# rm -rf /etc/dynatrace/oneagent
Remove the Dynatrace OneAgent log files.
# rm -rf /var/log/dynatrace/oneagent
Restart the server.
# reboot
Once you have completed these steps, Dynatrace OneAgent will be completely uninstalled from your Solaris server.
ii. To uninstall Dynatrace OneAgent on zOS, you can follow these steps:
Log in to the server as a user with AUTHORIZATION(SZDTAUTH).
Stop the Dynatrace OneAgent service.
Remove the Dynatrace OneAgent installation directory.
Remove the Dynatrace OneAgent configuration files.
Remove the Dynatrace OneAgent log files.
Remove the Dynatrace OneAgent started task from any automation process that starts it at IPL time.
Remove SZDTAUTH from the APF Authorized list.
Remove the zDC proc from your proclib.
Remove the zDC JCL from your JCL library if one exists.
Restart the server.
Here are the steps in more detail:
Stop the Dynatrace OneAgent service.
# STRCMD zdc
Remove the Dynatrace OneAgent installation directory.
# RM -RF /usr/lpp/dynatrace/oneagent
Remove the Dynatrace OneAgent configuration files.
# RM -RF /etc/dynatrace/oneagent
Remove the Dynatrace OneAgent log files.
# RM -RF /var/log/dynatrace/oneagent
Remove the Dynatrace OneAgent started task from any automation process that starts it at IPL time.
# CHGJOB -JOBNAME=dynatrace-oneagent -STATE=DISABLED
Remove SZDTAUTH from the APF Authorized list.
# CHGAUTH -USRID=SZDTAUTH -EXCLUDE
Remove the zDC proc from your proclib.
# RM -F /etc/proc/zdc.proc
Remove the zDC JCL from your JCL library if one exists.
# RM -F /usr/lpp/dynatrace/oneagent/zdc.jcl
Restart the server.
# IPL
Once you have completed these steps, Dynatrace OneAgent will be completely uninstalled from your zOS server.
iii. To uninstall Dynatrace OneAgent on Kubernetes, you can follow these steps:
Delete the Dynatrace OneAgent DaemonSet.
kubectl delete daemonset dynatrace-oneagent
Remove the Dynatrace OneAgent installation directory.
kubectl exec -it angled-bracket-herepod-nameangled-bracket-here -- rm -rf /opt/dynatrace/oneagent
Remove the Dynatrace OneAgent configuration files.
kubectl exec -it angled-bracket-herepod-nameangled-bracket-here -- rm -rf /etc/dynatrace/oneagent
Remove the Dynatrace OneAgent log files.
kubectl exec -it angled-bracket-herepod-nameangled-bracket-here -- rm -rf /var/log/dynatrace/oneagent
Once you have completed these steps, Dynatrace OneAgent will be completely uninstalled from your Kubernetes cluster.
Note: If you are using the Dynatrace OneAgent Operator for Kubernetes, you will need to uninstall the Operator before uninstalling Dynatrace OneAgent. To uninstall the Operator, you can follow these steps:
Delete the Dynatrace OneAgent Operator Deployment.
kubectl delete deployment dynatrace-oneagent-operator
Remove the Dynatrace OneAgent Operator configuration files.
kubectl delete cm dynatrace-oneagent-operator
Remove the Dynatrace OneAgent Operator RBAC Roles and RoleBindings.
kubectl delete rolebinding dynatrace-oneagent-operator
kubectl delete role dynatrace-oneagent-operator
Once you have completed these steps, the Dynatrace OneAgent Operator will be completely uninstalled from your Kubernetes cluster.