Zum Inhalt springen

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.

Before you delete a gateway, ensure that:

  • You have the gatewayId of 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.

You need the unique identifier of the gateway to proceed with the deletion.

  1. List the VPN gateways in your project:

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

  1. Locate the gateway you want to delete and copy its id.

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

  1. Open your API client or terminal.

  2. Send the request to the following endpoint:

DELETE /v1alpha1/projects/{projectId}/regions/{region}/gateways/{gatewayId}

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.