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. |
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-4fa54026IMAGE ami-4fa54026