• /
  • EnglishEspañol日本語한국어Português
  • Log inStart now

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.

    bash
    $
    newrelic-install purge

    OR

    bash
    $
    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.).

Copyright © 2024 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.