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

This document explains how to uninstall the New Relic Java 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#java).

To remove the Java agent:

1.  Delete the `newrelic` folder from your app server's root directory.
2.  Remove the [JVM argument](https://docs.newrelic.com/docs/agents/java-agent/installation/include-java-agent-jvm-argument) you used to include the agent in your startup script.
3.  If applicable, rename your backed-up start script to its original name.
4.  After you complete these steps, [restart](https://docs.newrelic.com/docs/agents/manage-apm-agents/installation/uninstall-agent#restart) your app.

> #### 💡 TIP
>
> You may also want to [remove your app](https://docs.newrelic.com/docs/apm/new-relic-apm/maintenance/remove-applications-from-new-relic-ui) from the APM UI.
