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.
Note

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?

Would you like to help us improve our documents? Tell us what you think we could do better.


We're sorry to hear that you're not satisfied with the document. We'd love to learn what we could do to improve the experience.


Thanks for taking the time to share your feedback. We'll use your feedback to improve our online help resources.

Shortlink has been copied!