Skip to content

Instantly share code, notes, and snippets.

@nathanpeck
Created August 16, 2021 22:05
Show Gist options
  • Save nathanpeck/58751fd5fe8d63770b38bf53d96590e2 to your computer and use it in GitHub Desktop.
Save nathanpeck/58751fd5fe8d63770b38bf53d96590e2 to your computer and use it in GitHub Desktop.
Uninstall ECS Anywhere from a host, for reinstall, or registration with a different account/region/cluster
apt remove -y amazon-ssm-agent amazon-ecs-init
rm -rf /var/lib/amazon/ssm/Vault/Store/RegistrationKey
rm -rf /var/lib/ecs/ecs.config
rm -rf /etc/ecs/ecs.config
rm -rf /var/lib/ecs/data/*
@nisalupendra
Copy link

Loved this, works perfectly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment