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 DiggDid this page help you?  Yes  No   Tell us about it...

DeleteInternetGateway

Description

Deletes an Internet gateway from your AWS account. The gateway must not be attached to a VPC. For more information about your VPC and Internet gateway, go to Amazon Virtual Private Cloud User Guide.

Request Parameters

NameDescriptionRequired

InternetGatewayId

The ID of the Internet gateway to be deleted.

Type: String

Default: None

Yes

Response Elements

The elements in the following table are wrapped in a DeleteInternetGatewayResponse structure.

NameDescription

requestId

The ID of the request.

Type: String

return

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

Type: xsd:boolean

Examples

Example Request

This example deletes the Internet gateway with ID igw-eaad4883.

https://ec2.amazonaws.com/?Action=DeleteInternetGateway
&InternetGatewayId=igw-eaad4883
&AUTHPARAMS

Example Response

<DeleteInternetGatewayResponse xmlns="http://ec2.amazonaws.com/doc/2011-07-15/">
  <requestId>59dbff89-35bd-4eac-99ed-be587EXAMPLE</requestId> 
  <return>true</return>
</DeleteInternetGatewayResponse>

Related Operations