| « PreviousNext » | |
![]() ![]() | Did this page help you? Yes | No | Tell us about it... |
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.
InternetGatewayIdThe ID of the Internet gateway.
Type: String
Default: None
Required: Yes
The following elements are returned in a
DeleteInternetGatewayResponse element.
requestIdThe ID of the request.
Type: xsd:string
returnReturns true if the request succeeds. Otherwise, returns an error.
Type: xsd:boolean
This example deletes the Internet gateway with ID igw-eaad4883.
https://ec2.amazonaws.com/?Action=DeleteInternetGateway &InternetGatewayId=igw-eaad4883 &AUTHPARAMS
<DeleteInternetGatewayResponse xmlns="http://ec2.amazonaws.com/doc/2013-02-01/"> <requestId>59dbff89-35bd-4eac-99ed-be587EXAMPLE</requestId> <return>true</return> </DeleteInternetGatewayResponse>