

# Delete a VPC peering connection
<a name="delete-vpc-peering-connection"></a>

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](vpc-peering-basics.md#vpc-peering-lifecycle).

**To delete a VPC peering connection**

1. Open the Amazon VPC console at [https://console.aws.amazon.com/vpc/](https://console.aws.amazon.com/vpc/).

1. In the navigation pane, choose **Peering connections**.

1. Select the VPC peering connection.

1. Choose **Actions**, **Delete peering connection**.

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

**To delete a VPC peering connection using the command line**
+ [delete-vpc-peering-connection](https://docs.aws.amazon.com/cli/latest/reference/ec2/delete-vpc-peering-connection.html) (AWS CLI)
+ [Remove-EC2VpcPeeringConnection](https://docs.aws.amazon.com/powershell/latest/reference/items/Remove-EC2VpcPeeringConnection.html) (AWS Tools for Windows PowerShell)