---
title: Uninstall the Ruby agent
source: https://docs.newrelic.com/docs/apm/agents/ruby-agent/installation/uninstall-ruby-agent
---

This document explains how to uninstall the New Relic Ruby agent. For instructions on how to temporarily disable the agent, see [Disable the agent](https://docs.newrelic.com/docs/agents/manage-apm-agents/installation/disable-apm-agent#ruby).

To uninstall the Ruby agent:

1.  Delete the line `gem 'newrelic_rpm'` from your Gemfile.
2.  Remove the **newrelic.yml** file from your **APP_ROOT/config/** folder.
3.  Run **bundle install**.
4.  When the uninstall process finishes, restart your app.

For more information about installation, see [New Relic for Ruby](https://docs.newrelic.com/docs/agents/ruby-agent/getting-started/new-relic-ruby).
