Skip to main content
This guide covers terminating an AWS EC2 instance. Termination permanently deletes the instance. The root EBS volume is deleted by default; other attached volumes may need to be deleted separately.
Complete the pre-termination checklist before proceeding. Termination is irreversible.

Option 1: AWS Management Console

1

Open the EC2 Instances list

Sign in to the AWS Management Console and navigate to EC2 → Instances → Instances.
2

Select your instance

Check the box next to the instance running OpenClaw. Confirm the correct instance by checking its public IP against what appeared on the watchboard.
3

Disable termination protection if set

If termination protection is enabled (Actions → Instance Settings → Change Termination Protection shows “Enabled”), disable it first. Otherwise the terminate action will fail with a OperationNotPermitted error.
4

Terminate the instance

Choose Instance state → Terminate instance from the Actions menu. Confirm when prompted.The instance moves to the shutting-down state and then terminated. AWS retains the terminated record for about an hour before removing it from the list.
Official AWS documentation: Terminate Amazon EC2 Instances

Option 2: AWS CLI

If you have the AWS CLI installed and configured:
If termination protection is enabled, disable it first:
Official AWS CLI reference: terminate-instances

Post-termination cleanup

Delete unattached EBS volumes

The root EBS volume is deleted automatically when the instance terminates (if “Delete on Termination” was enabled — this is the default). Additional attached volumes are not deleted automatically.

Delete snapshots

Remove the Security Group

If you created a Security Group specifically for this instance, delete it:

Release the Elastic IP (if assigned)

Elastic IPs continue to incur charges if not released after the instance is terminated:
AWS guide: Delete or Terminate EC2 Resources

Rotate credentials

After termination, rotate everything the agent had access to. See the post-termination checklist for the full list.