Uninstall the Amazon Systems Manager Agent - Amazon IoT Greengrass
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Uninstall the Amazon Systems Manager Agent

If you no longer want to manage a Greengrass core device with Amazon Systems Manager, you can deregister the core device from Systems Manager and uninstall the Amazon Systems Manager Agent (Systems Manager Agent) from the device.

You can reregister a core device again at any time. To do so, deploy the Systems Manager Agent component again, which registers the core device with Systems Manager when it installs. Systems Manager stores the command history for a deregistered core device for 30 days.

Step 1: Deregister the core device from Systems Manager

You can use the Systems Manager console or API to deregister the core device. For more information, see Deregistering managed nodes in the Amazon Systems Manager User Guide.

Step 2: Uninstall the Systems Manager Agent component

After you deregister the core device, uninstall the Systems Manager Agent component from the device. To remove a component from a Greengrass core device, revise the deployment that installed the component, and remove the component from the deployment. The Amazon IoT Greengrass Core software uninstalls a component when none of a core device's deployments specify that component. For more information, see Deploy Amazon IoT Greengrass components to devices.

  1. In the Amazon IoT Greengrass console navigation menu, choose Core devices.

  2. Choose the core device where you want to uninstall the Systems Manager Agent component.

  3. On the core device details page, choose the Deployments tab.

  4. Choose the deployment that deploys the Systems Manager Agent component to the core device.

  5. On the deployment details page, choose Revise.

  6. In the Revise deployment modal, choose Revise deployment.

  7. In Step 1: Specify target, choose Next.

  8. In Step 2: Select components, clear the selection for the aws.greengrass.SystemsManagerAgent component, and then choose Next.

  9. In Step 3: Configure components, choose Next.

  10. In Step 4: Configure advanced settings, choose Next.

  11. In Step 5: Review, choose Deploy.

To uninstall the Systems Manager Agent component, revise the deployment that deploys it, and remove it from the deployment. For more information, see Revise deployments.

The deployment can take several minutes to complete. You can use the Amazon IoT Greengrass service to check the status of the deployment. For more information, see Check deployment status.

Step 3: Uninstall the Systems Manager Agent software

The Systems Manager Agent software continues to run on the core device after you remove the Systems Manager Agent component. To remove the Systems Manager Agent software, you can run commands on the core device. For more information, see Uninstall Systems Manager Agent from Linux instances in the Amazon Systems Manager User Guide.