Delete a gateway
Zuletzt aktualisiert am
Deleting a VPN gateway permanently removes the associated virtual infrastructure and terminates all encrypted tunnels. This action also releases the public IPv4 addresses assigned to the gateway.
Prerequisites
Section titled “Prerequisites”Before you delete a gateway, ensure that:
- You have the
gatewayIdof the resource you want to remove. - No critical production traffic is currently using the gateway or its active connections.
- You have notified any affected teams, as this action results in an immediate network disconnection.
Identify the gateway
Section titled “Identify the gateway”You need the unique identifier of the gateway to proceed with the deletion.
- List the VPN gateways in your project:
GET /v1beta1/projects/{projectId}/regions/{region}/gateways
- Locate the gateway you want to delete and copy its
id.
Delete the gateway
Section titled “Delete the gateway”To remove the resource, send a DELETE request to the gateway endpoint.
-
Open your API client or terminal.
-
Send the request to the following endpoint:
DELETE /v1alpha1/projects/{projectId}/regions/{region}/gateways/{gatewayId}
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 and open its details or use the actions menu.
- Click Delete and confirm the deltion in the dialog
Once confirmed, the VPN and its underlying ressources will be removed shortly. You can see the lifecycle state of the VPN Gateway in the VPN overview.
Verify deletion
Section titled “Verify deletion”Once you initiate the deletion, the gateway status transitions to DELETING.
- Process initiated: Gateway deletion initiated.
- Final state: The resource is removed from your project and will no longer appear in the gateway list.
If the gateway remains in the DELETING state for an extended period, please contact the STACKIT support team.