Zum Inhalt springen

Delete a connection

Zuletzt aktualisiert am

Deleting a VPN connection permanently removes the IPSec tunnels between your STACKIT VPN gateway and the remote peer. This action releases the associated virtual resources and stops any active traffic flow.

Before you delete a connection, ensure the following:

  • You have the projectId, region, gatewayId and connectionId of the resource you want to remove.
  • You have notified any affected teams, as this action immediately terminates the encrypted tunnel.

To delete a specific connection, you need its unique identifier.

  1. Retrieve a list of all connections for your gateway:

    GET /v1beta1/projects/{projectId}/regions/{region}/gateways/{gatewayId}/connections

  2. Locate the connection in the response and copy the id value.

To remove the resource, send a DELETE request to the connection endpoint.

  1. Send the request to the following endpoint:

    DELETE /v1beta1/projects/{projectId}/regions/{region}/gateways/{gatewayId}/connections/{connectionId}

Once the request is sent, the system initiates the deprovisioning process.

  • Check the status: The connection status transitions to DELETING.
  • Final confirmation: After the process completes, the connection is removed from the list.

If the status remains in DELETING for an extended period or transitions to ERROR, please contact the STACKIT support team.