Help Docs

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?

Shortlink has been copied!