Help APM APM for Node.js Uninstall Node.js Agent

Uninstall the Node.js Agent

To uninstall the APM Insight Node.js agent, follow these instructions:

  1. Open your Node.js application.
  2. Access the node package manager (NPM).
  3. Navigate to the application root directory of the application from which you want to uninstall the agent.
  4. Enter the below command:
    npm uninstall apminsight
  5. Remove the "require("apminsight")" statement from your Node.js application start file.
  6. Restart the Node.js application.

After uninstalling the agent, the agent-related configuration files and logs will not be deleted automatically; you need to delete them manually.

Was this document helpful?
Thanks for taking the time to share your feedback. We’ll use your feedback to improve our online help resources.

Help APM APM for Node.js Uninstall Node.js Agent