Deregisters the specified AMI. Once deregistered, the AMI cannot be used to launch new instances.
![]() | Note |
|---|---|
This command does not delete the AMI. |
| Name | Description | Required |
|---|---|---|
|
|
ID of the AMI to deregister. Type: String Default: None |
Yes |
The elements in the following table come wrapped in a
DeregisterImageResponse structure.
| Name | Description |
|---|---|
|
|
The ID of the request. Type: xsd:string |
|
|
Returns true if the request succeeds. Otherwise, returns an error. Type: xsd:boolean |
This example deregisters the ami-4fa54026 AMI.
https://ec2.amazonaws.com/?Action=DeregisterImage &ImageId=ami-4fa54026 &AuthParams
<DeregisterImageResponse xmlns="http://ec2.amazonaws.com/doc/2010-08-31/"> <requestId>59dbff89-35bd-4eac-99ed-be587EXAMPLE</requestId> <return>true</return> </DeregisterImageResponse>