Delete a VPC peering connection - Amazon Virtual Private Cloud

Delete a VPC peering connection

Either owner of a VPC in a peering connection can delete the VPC peering connection at any time. You can also delete a VPC peering connection that you've requested that is still in the pending-acceptance state.

You cannot delete the VPC peering connection when the VPC peering connection is in the rejected state. We automatically delete the connection for you.

Deleting a VPC in the Amazon VPC console that's part of an active VPC peering connection also deletes the VPC peering connection. If you have requested a VPC peering connection with a VPC in another account, and you delete your VPC before the other party has accepted the request, the VPC peering connection is also deleted. You cannot delete a VPC for which you have a pending-acceptance request from a VPC in another account. You must first reject the VPC peering connection request.

When you delete a peering connection, the status is set to Deleting and then Deleted. After you delete a connection, it can't be accepted, rejected, or edited. For more information about how long the peering connection remains visible, see VPC peering connection lifecycle.

To delete a VPC peering connection
  1. Open the Amazon VPC console at https://console.aws.amazon.com/vpc/.

  2. In the navigation pane, choose Peering connections.

  3. Select the VPC peering connection.

  4. Choose Actions, Delete peering connection.

  5. When prompted for confirmation, enter delete and then choose Delete.

To delete a VPC peering connection using the command line or an API