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.
Prerequisites
Section titled “Prerequisites”Before you delete a connection, ensure the following:
- You have the
projectId,region,gatewayIdandconnectionIdof the resource you want to remove. - You have notified any affected teams, as this action immediately terminates the encrypted tunnel.
Identify the connection
Section titled “Identify the connection”To delete a specific connection, you need its unique identifier.
-
Retrieve a list of all connections for your gateway:
GET
/v1beta1/projects/{projectId}/regions/{region}/gateways/{gatewayId}/connections -
Locate the connection in the response and copy the
idvalue.
Delete the connection
Section titled “Delete the connection”To remove the resource, send a DELETE request to the connection endpoint.
-
Send the request to the following endpoint:
DELETE
/v1beta1/projects/{projectId}/regions/{region}/gateways/{gatewayId}/connections/{connectionId}
Visit the STACKIT Portal, select your desired project and follow these steps:
- In the sidebar under Networking, click on VPN.
- Locate the VPN Gateway you want to delete a connection from and open its details by clicking on the respective gateway.
- In the sidebar click on Connections.
- Locate the VPN Connection you want to delete and open its details or use the actions menu.
- Click Delete and confirm the deletion in the dialog.
Once confirmed, the VPN Connection will be removed shortly. You can see the lifecycle state of the VPN Connection in the VPN Connection overview.
Verify deletion
Section titled “Verify deletion”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.