AWS Systems Manager
User Guide

Uninstall SSM Agent from Linux Instances

Use the following commands to uninstall SSM Agent.

Amazon Linux, Amazon Linux 2, RHEL, and CentOS

sudo yum erase amazon-ssm-agent –y

Ubuntu Server

  • deb package installations:

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

    sudo snap remove amazon-ssm-agent


sudo rpm --erase amazon-ssm-agent