How to Delete/Terminate an EC2 Instance

Login to AWS Management Console and navigate to EC2 dashboard. Search for the instance that you would like to delete and right click on the instance. Select ‘Terminate’ under ‘Instance State’.

On the ‘Terminate Instances’ window, confirm by choosing ‘Yes, Terminate’.

To terminate an EC2 Instance from AWS CLI, run the following command where INSTANCEID is the instance id of the EC2 Instance.

aws ec2 terminate-instances --instance-ids INSTANCEID

Below is the command to terminate multiple instances using AWS CLI.

aws ec2 terminate-instances --instance-ids INSTANCEID1 INSTANCEID2 INSTANCEID3

See also  How to delete an SQS queue from AWS Management console