Read on to learn how to uninstall the New Relic PHP agent. For instructions on how to temporarily disable the agent, see Disable the agent.
This document explains how to uninstall the New Relic PHP agent for the following systems:
- RedHat and CentOS
- Ubuntu and Debian
- Tar archive (any supported system)
Uninstalling the agent
When uninstalling New Relic from a PHP application, you must remove the New Relic agent and also remove associated New Relic configuration files.
To uninstall the PHP agent from your system:
Remove the agent files from your system:
Remove any remaining New Relic configuration files. Use the
newrelic-install
orapt-get remove
commands with thepurge
option.newrelic-install purgeOR
apt-get remove --purge newrelicIf you use a package manager, remove files specific to the manager:
Restart your web servers (Apache, Nginx, PHP-FPM, etc.).
For more help
Additional documentation resources include:
- Suggest a change and learn how to contribute to our PHP agent open source repository.
- The newrelic-install script (steps for using the install script to install and uninstall the agent)
- Remove apps from New Relic (steps to remove an app from showing up in your New Relic account)