This page includes the commands required to uninstall Smart Agent that is running on the respective platforms.

Linux-Based Platforms

Run the following command from the location where you have installed Smart Agent. The default installation location is /opt/appdynamics/appdsmartagent:

  • Debian

    sudo apt remove appdsmartagent 
    CODE
  • RHEL/CENTOS

    sudo yum remove appdsmartagent 
    CODE

To purge the data, see Remove Data Post Installation.

Windows

You can stop appdsmartagent from Services or run the following command:

  • Windows-stop

    sc stop appdsmartagent 
    CODE
  • Windows-delete

    sc delete appdsmartagent
    CODE

You can also delete the C:\appdynamics\appdsmartagent folder.

Remove Data Post Installation 

You may require to remove the Smart Agent data post installation. This is required for the Linux-based Platforms.

After the uninstallation, you may require to perform the following to purge the Smart Agent data from the machine:

  • Remove any Smart Agent data from the location where you have installed Smart Agent. The default install location is /opt/appdynamics/appdsmartagent and /etc/opt/appdynamics.
  • In the /etc/apache2/envvars file, remove the line that starts with the following:

    export APPD_SMART_AGENT=...
    CODE

If you have installed Smart Agent by using zip file, you may require to delete the following:

  • /opt/appdynamics/appdsmartagent
  • /etc/opt/appdynamics
  • /lib/systemd/system/smartagent.service