Uninstall the Python Agent

You can remove Python Agent instrumentation from your application by reverting deployment script changes made when installing the agent to remove all pyagent commands and APPD environment variables.

Removing instrumentation is generally sufficient for most purposes when it comes to uninstalling the Python Agent, however, you can additionally remove the Python Agent packages using pip.

Because pip install appdynamics installed a separate dependencies package as well as the agent, two pip uninstall commands are required:

To uninstall the Python agent, run this command:
pip uninstall appdynamics pip uninstall <python_agent_package>
If you do not know which package is installed, you can find out using pip freeze and grep:
pip freeze | grep appdynamics
The upgrade will take effect the next time you restart the agent.