Uninstalling the agent

If you encounter problems using New Relic, you can always get support at support.newrelic.com. If you need to uninstall New Relic completely, follow the procedures for your specific agent or server monitor.

Note: Make sure your applications are not reporting any data (their "traffic light" status is gray) before uninstalling the agent.

Java

To remove the Java agent:

  1. Delete the newrelic folder from your app server's root.
  2. Delete the New Relic Java options variable from your startup script.

For more information about installation, see New Relic for Java.

.NET

To remove the .NET agent:

  1. Select Start > All Programs > New Relic .NET Agent.
  2. Select Uninstall the .NET agent.
  3. Follow the prompts to complete the uninstallation.

This process will leave your newrelic.config file untouched.

For more information about installation, see New Relic for .NET.

PHP

To remove the PHP agent and leave the configuration file intact (in case you want to reinstall the agent), execute the newrelic-install script (as root):

sudo /usr/bin/newrelic-install

To fully remove the agent, include the purge option. This will remove everything from your system:

sudo /usr/bin/newrelic-install purge

For more information, see The newrelic-install script and New Relic for PHP.

Python

To uninstall your Python agent, use one of these methods:

  • If installed with PIP: pip uninstall newrelic/.
  • If installed with easy_install: easy_install -m newrelic.

For more information about installation, see New Relic for Python.

Ruby

To remove the Ruby agent from your Rails application, remove the newrelic.yml file from within your RAILS_ROOT/config/ file.

To remove New Relic from your Gemfile:

  1. Delete this line: gem 'newrelic_rpm'.
  2. Run bundle install.

For more information about installation, see New Relic for Ruby.

Server monitor

To uninstall New Relic from your server monitor, use one of these methods as applicable.

If you are using... Do this...
RedHat and CentOS Be sure to execute the command as root. For more information about server monitor installation, see RedHat and CentOS.
Yum yum remove newrelic-sysmond
RPM rpm -ev newrelic-sysmond
Ubuntu and Debian Be sure to execute the command as root. For more information about server monitor installation, see Ubuntu and Debian.
apt apt-get remove newrelic-sysmond
dpkg dpkg -r newrelic-sysmond
Windows For more information about server monitor installation, see Windows.
Recommended Use the Uninstall shortcut that is included in the Windows Start > New Relic Server Monitor folder. Follow the prompts to complete the uninstallation process.
Optional You can also use the command line:
msiexec /x NewRelicServerMonitor-.msi /L*v uninstall.log

For more help

If you need additional help, get support at support.newrelic.com.