Knowledge Base: How do I uninstall the New Relic agent?
If you installed the agent as a plugin, execute this command to remove it:
script/plugin remove newrelic_rpm
If you installed the plugin as a gem, remove all references to
newrelic_rpm from your environment.rb
file.