Uninstalling SSM Agent from Linux instances - Amazon Systems Manager
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).

Uninstalling SSM Agent from Linux instances

Use the following commands to uninstall Amazon Systems Manager Agent (SSM Agent).

Amazon Linux, Amazon Linux 2, Amazon Linux 2023, CentOS, Oracle Linux, and Red Hat Enterprise Linux

sudo yum erase amazon-ssm-agent --assumeyes

Debian Server

sudo dpkg -r amazon-ssm-agent

SUSE Linux Enterprise Server (SLES)

  • zypper command installations:

    sudo zypper remove amazon-ssm-agent
  • rpm command installations:

    sudo rpm --erase amazon-ssm-agent

Ubuntu Server

  • deb package installations:

    sudo dpkg -r amazon-ssm-agent
  • snap package installations:

    sudo snap remove amazon-ssm-agent