Uninstall the Node.js Agent
To uninstall the APM Insight Node.js agent, follow these instructions:
- Open your Node.js application.
- Access the node package manager (NPM).
- Navigate to the application root directory of the application from which you want to uninstall the agent.
- Enter the below command:
npm uninstall apminsight - Remove the "require("apminsight")" statement from your Node.js application start file.
- 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.