Teardown
Match the path you used.
| Path | Teardown command(s) |
|---|---|
| Cloud (managed) Fargate | aws cloudformation delete-stack --stack-name argus-agent-fargate |
| Cloud (managed) EC2 | aws cloudformation delete-stack --stack-name argus-agent-ec2; if you created a key pair just for this deploy, aws ec2 delete-key-pair --key-name <name> |
| Cloud (DIY) Terraform | terraform destroy -var enrollment_token="..." |
| Cloud (DIY) ECS task JSON | See the step-by-step teardown; deletes secret, two IAM roles, security group, task definition, log group |
| Cloud (DIY) IAM policy | No infrastructure to tear down |
| Local Docker Compose | docker compose down -v |
| Local docker run | docker stop argus-agent && docker rm argus-agent && docker volume rm argus_agent_data |
| Local Offline tarball | Same as docker run, plus docker image rm ghcr.io/argusdspm/argus-agent:stable and remove the tarball from both build box and target host |
You can also fully delete the agent from Argus (separate from the deploy-side teardown above) by going to Agents > [your agent] > Delete in the dashboard. This removes the API key and the agent record on the backend side.