CmdID

CmdID / aws / aws ec2

aws ec2 delete-internet-gateway

Deletes the specified internet gateway. AWS CLI reference

1 example 2 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

To delete an internet gateway

The following delete-internet-gateway example deletes the specified internet gateway.

aws ec2 delete-internet-gateway --internet-gateway-id igw-0d0fb496b3EXAMPLEIdentify
--internet-gateway-idThe ID of the internet gateway.

This command produces no output.

For more information, see Internet gateways in the Amazon VPC User Guide.

Options

2 in the AWS CLI reference
--dry-runChecks whether you have the required permissions for the action, without actually making the request, and provides an error response.
--internet-gateway-idThe ID of the internet gateway.