ec2-deregister
ec2-deregister
ami_id
Deregisters the specified AMI. Once deregistered, the AMI cannot be used to launch new instances.
Note | |
---|---|
This command does not delete the AMI from Amazon S3. |
Option | Description | Required |
---|---|---|
|
AMI identifier. Example: |
Yes |
Amazon EC2 returns a table that contains the following information:
-
A record type identifier ("IMAGE")
-
The image identifier that was deregistered
Amazon EC2 displays errors on stderr.
This example deregisters the ami-4fa54026 AMI:
$
ec2-deregister ami-4fa54026
IMAGE ami-4fa54026