ec2-deregister

ec2-deregister ami_id

Deregisters the specified AMI. Once deregistered, the AMI cannot be used to launch new instances.

[Note]Note

This command does not delete the AMI from Amazon S3.

OptionDescriptionRequired

ami_id

AMI identifier.

Example: ami-4fa54026

Yes

Amazon EC2 returns a table that contains the following information:

Amazon EC2 displays errors on stderr.

This example deregisters the ami-4fa54026 AMI.

$ ec2-deregister ami-4fa54026
IMAGE ami-4fa54026