CmdID

CmdID / aws / aws ec2

aws ec2 delete-subnet

Deletes the specified subnet. 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 a subnet

The following delete-subnet example deletes the specified subnet.

aws ec2 delete-subnet --subnet-id subnet-9d4a7b6cIdentify
--subnet-idThe ID of the subnet.

This command produces no output.

For more information, see Delete a subnet 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.
--subnet-idThe ID of the subnet.