Print this pageEmail this pageGo to the ForumsView the PDFShare this page on TwitterShare this page on FacebookBookmark this page on DeliciousSubmit this page to RedditSubmit this page to Digg

DeregisterImage

Description

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

[Note]Note

This command does not delete the AMI.

Request Parameters

NameDescriptionRequired

ImageId

ID of the AMI to deregister.

Type: String

Default: None

Yes

Response Elements

The elements in the following table come wrapped in a DeregisterImageResponse structure.

NameDescription

requestId

The ID of the request.

Type: xsd:string

return

Returns true if the request succeeds. Otherwise, returns an error.

Type: xsd:boolean

Examples

Example Request

This example deregisters the ami-4fa54026 AMI.

https://ec2.amazonaws.com/?Action=DeregisterImage
&ImageId=ami-4fa54026
&AuthParams

Example Response

<DeregisterImageResponse xmlns="http://ec2.amazonaws.com/doc/2010-08-31/">
  <requestId>59dbff89-35bd-4eac-99ed-be587EXAMPLE</requestId> 
  <return>true</return>
</DeregisterImageResponse>