

# Delete an AWS Transit Gateway SSE connect attachment

Delete an SSE connect attachment when you no longer want traffic from a transit gateway to go through SSE connect. You can't delete an SSE connect attachment from your transit gateway using the Amazon VPC console or the Amazon EC2 API. The SSE connect owner deletes the attachment from the SSE connect. In the AWS Network Manager console, this action is named **Disassociate**. Deleting the SSE connect attachment also deletes its transit gateway attachment.

**Warning**  
Deleting an SSE connect attachment causes traffic loss. It removes the routes that it propagated to your transit gateway route tables, including the default routes `0.0.0.0/0` and `::/0` and any SNAT ranges, and traffic that matches those routes is dropped until you update your routing. Before you delete the attachment, update your transit gateway route tables to account for the removal of these routes.

**To delete an SSE connect attachment using the console**

1. Open the Network Manager console at [https://console.aws.amazon.com/networkmanager/home/](https://console.aws.amazon.com/networkmanager/home).

1. In the navigation pane, choose **SSE connects**.

1. Select the SSE connect.

1. On the **Attachments** tab, select the attachment.

1. Choose **Actions**, **Disassociate**.

1. When prompted for confirmation, enter **confirm**, and then choose **Disassociate**.

In the following commands, replace the example values in italics with your own.

**To delete an SSE connect attachment using the AWS CLI**

1. To find the ID of the SSE connect attachment, run the following AWS CLI [list-sse-connect-transit-gateway-attachments](https://docs.aws.amazon.com/cli/latest/reference/networkmanager/list-sse-connect-transit-gateway-attachments.html) command. In the output, match the `TransitGatewayAttachmentId` to the transit gateway attachment that you want to delete, and note its `SseConnectTransitGatewayAttachmentId`.

   ```bash
   aws networkmanager list-sse-connect-transit-gateway-attachments \
     --sse-connect-id {{sse-connect-1234567890abcdef0}}
   ```

1. To delete the attachment, run the following AWS CLI [delete-sse-connect-transit-gateway-attachment](https://docs.aws.amazon.com/cli/latest/reference/networkmanager/delete-sse-connect-transit-gateway-attachment.html) command.

   ```bash
   aws networkmanager delete-sse-connect-transit-gateway-attachment \
     --sse-connect-transit-gateway-attachment-id {{sse-connect-tgw-attach-1234567890abcdef0}}
   ```

1. To verify that the transit gateway attachment moves to the `deleting` state and then to the `deleted` state, run the following AWS CLI [describe-transit-gateway-attachments](https://docs.aws.amazon.com/cli/latest/reference/ec2/describe-transit-gateway-attachments.html) command.

   ```bash
   aws ec2 describe-transit-gateway-attachments \
     --transit-gateway-attachment-ids {{tgw-attach-1234567890abcdef0}}
   ```