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-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*.