HEX
Server: LiteSpeed
System: Linux ip-172-31-76-142.ec2.internal 4.14.158-129.185.amzn2.x86_64 #1 SMP Tue Dec 24 03:15:32 UTC 2019 x86_64
User: 69b4844ae61d4e92bf26ad98af552775 (1065)
PHP: 7.2.27
Disabled: exec,passthru,shell_exec,system,eval
Upload Files
File: //lib/python2.7/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*.