Amazon Elastic Compute Cloud
API Reference (API Version 2013-02-01)
« PreviousNext »
View the PDF for this guide.Go to the AWS Discussion Forum for this product.Did 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, see the Amazon Virtual Private Cloud User Guide.

Request Parameters

InternetGatewayId

The ID of the Internet gateway.

Type: String

Default: None

Required: Yes

Response Elements

The following elements are returned in a DeleteInternetGatewayResponse element.

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 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/2013-02-01/">
  <requestId>59dbff89-35bd-4eac-99ed-be587EXAMPLE</requestId> 
  <return>true</return>
</DeleteInternetGatewayResponse>