HEX
Server: LiteSpeed
System: Linux s3604.bom1.stableserver.net 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
User: dmstechonline (1480)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: //usr/lib/python3.6/site-packages/awscli/examples/ec2/delete-transit-gateway-vpc-attachment.rst
**To delete a transit gateway VPC attachment**

The following ``delete-transit-gateway-vpc-attachment`` example deletes the specified transit gateway VPC attachment. ::

    aws ec2 delete-transit-gateway-vpc-attachment \
        --transit-gateway-attachment-id tgw-attach-0d2c54bdbEXAMPLE

Output::

    {
        "TransitGatewayVpcAttachment": {
            "TransitGatewayAttachmentId": "tgw-attach-0d2c54bdb3EXAMPLE",
            "TransitGatewayId": "tgw-02f776b1a7EXAMPLE",
            "VpcId": "vpc-0065acced4f61c651",
            "VpcOwnerId": "111122223333",
            "State": "deleting",
            "CreationTime": "2019-07-17T16:04:27.000Z"
        }
    }{
        "Key": {
            "Key": 
            "Value"
        }
    }

For more information, see `Delete a VPC Attachment <https://docs.aws.amazon.com/vpc/latest/tgw/tgw-vpc-attachments.html#delete-vpc-attachment>`__ in the *AWS Transit Gateways Guide*.