Deleting a VPC Endpoint

You can delete a VPC endpoint that you no longer need. This action also deletes the corresponding routes in the route table associated with the VPC endpoint.

Once the VPC endpoint is deleted, traffic cannot be directly routed to the corresponding service using this private connection anymore.

Deleting a VPC Endpoint Using Cockpit

  1. Click VPC > VPC Endpoints.

  2. Click the VPC endpoint you want to delete.

    Multiselection is available.

    The VPC endpoint is selected.

  3. Click Delete .
    The DELETE ROUTE TABLE(S) dialog box appears.

  4. Click Delete to validate.
    The VPC endpoint is deleted and no longer appears on the VPC Endpoints page.

    Deleted resources remain visible for 1 hour.

Deleting a VPC Endpoint Using AWS CLI

To delete one or more VPC endpoints, use the delete-vpc-endpoints command following this syntax:

Request sample
$ aws ec2 delete-vpc-endpoints \
    --profile YOUR_PROFILE \
    --vpc-endpoint-ids vpce-12345678 \
    --endpoint https://fcu.eu-west-2.outscale.com

This command contains the following attributes that you need to specify:

  • (optional) profile: The named profile you want to use, created when configuring AWS CLI. For more information, see Installing and Configuring AWS CLI.

  • vpc-endpoints-ids: One or more IDs of VPC endpoints you want to delete.

  • endpoint: The endpoint corresponding to the Region you want to send the request to.

The delete-vpc-endpoints command returns the following element:

  • Unsuccessful: If the request is partially successful or is unsuccessful, a list of IDs of resources that are not deleted with the corresponding error message. If the request is successful, this list is empty.

Result sample
{
  "Unsuccessful": []
}

Related Pages

Corresponding API Method

AWS™ and Amazon Web Services™ are trademarks of Amazon Technologies, Inc or its affiliates in the United States and/or other countries.