aws ec2 delete-internet-gateway
Deletes the specified internet gateway. AWS CLI reference
1 example 2 options Its page in the AWS CLI reference
Examples
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
--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.