ec2-deregister
Syntax
ec2-deregister
ami_id
Description
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. |
Options
Option | Description | Required |
---|---|---|
| AMI identifier. Example: | Yes |
Output
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
.
Example
This example deregisters the ami-4fa54026 AMI.
PROMPT>
ec2-deregister ami-4fa54026
IMAGE ami-4fa54026