HEX
Server: LiteSpeed
System: Linux s1049.use1.mysecurecloudhost.com 4.18.0-477.27.2.lve.el8.x86_64 #1 SMP Wed Oct 11 12:32:56 UTC 2023 x86_64
User: xedaptot (3356)
PHP: 8.3.31
Disabled: NONE
Upload Files
File: //lib/python3.6/site-packages/awscli/examples/ec2/delete-transit-gateway-route.rst
**To delete a CIDR block from a route table**

The following command deletes the CIDR block from the specified transit gateway route table. ::

    aws ec2 delete-transit-gateway-route \
        --transit-gateway-route-table-id tgw-rtb-0b6f6aaa01EXAMPLE \
        --destination-cidr-block 10.0.2.0/24

Output::

    {
        "Route": {
            "DestinationCidrBlock": "10.0.2.0/24",
            "TransitGatewayAttachments": [
                {
                    "ResourceId": "vpc-0065acced4EXAMPLE",
                    "TransitGatewayAttachmentId": "tgw-attach-0b5968d3b6EXAMPLE",
                    "ResourceType": "vpc"
                }
            ],
            "Type": "static",
            "State": "deleted"
        }
    }

For more information, see `Delete a Static Route <https://docs.aws.amazon.com/vpc/latest/tgw/tgw-route-tables.html#tgw-delete-static-route>`__ in the *AWS Transit Gateways*.