• /
  • Log in
  • Free account

Uninstall the PHP agent

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:

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:

  1. Remove the agent files from your system:

  2. Remove any remaining New Relic configuration files. Use the newrelic-install or apt-get remove commands with the purge option.

    newrelic-install purge

    OR

    apt-get remove --purge newrelic
  3. If you use a package manager, remove files specific to the manager:

  4. Restart your web servers (Apache, Nginx, PHP-FPM, etc.).

For more help

If you need more help, check out these support and learning resources:

Create issueEdit page
Copyright © 2021 New Relic Inc.