Schedule demo

Uninstall APM Insight Node.js Agent


To uninstall the APM Insight Node.js agent, follow the steps given below:

  1. Open your Node.js application.
  2. Navigate to the application root directory of the application from which you want to uninstall the agent.
  3. Enter the below command:

    $ npm uninstall apminsight
  4. Run the following command to confirm that APM Insight has been removed:

    $ npm list | grep apminsight
  5. Delete the apminsightnode.json file, which contains details such as the license key and application name (if present), or delete any related environment variables that were configured.
  6. Delete the apminsightdata folder if it exists (located in the application's root directory).
  7. Remove the respective import or require statement from your Node.js application start file.

    JavaScriptCode snippet
    Common JSrequire('apminsight');
    ECMAScriptimport apminsight from 'apminsight';
    TypeScript
    import AgentAPI from apminsight';
    AgentAPI.config();
  8. If the agent was configured using NODE_OPTIONS, remove the below configuration from the package.json file:

    NODE_OPTIONS="-r apminsight"

    Or, delete the command shown below, which you added during the APM Node.js agent installation:

    node -r apminsight my-start-file.js
  9. Restart the Node.js application.

Thank you for your feedback!

Was this content helpful?

We are sorry. Help us improve this page.

How can we improve this page?
Do you need assistance with this topic?
By clicking "Submit", you agree to processing of personal data according to the Privacy Policy.

Loved by customers all over the world

"Standout Tool With Extensive Monitoring Capabilities"

It allows us to track crucial metrics such as response times, resource utilization, error rates, and transaction performance. The real-time monitoring alerts promptly notify us of any issues or anomalies, enabling us to take immediate action.

Reviewer Role: Research and Development

carlos-rivero
"I like Applications Manager because it helps us to detect issues present in our servers and SQL databases."
Carlos Rivero

Tech Support Manager, Lexmark

Trusted by over 6000+ businesses globally