# Delete VPN Gateway

{% hint style="info" %}
**Note:**

* You cannot delete LANs or a VDC containing VPN Gateway-connected LANs. Remember to delete the VPN gateway before deleting the connected VDC.
* VPN Gateways that are in the **Provisioning** state can be deleted via the DCD or via the Cloud API.
  {% endhint %}

To delete a VPN Gateway, follow these steps:

1\. In the **DCD**, go to **Menu** > **Network** > **VPN Gateway** under **Connectivity**.

2\. In the **OPTIONS** column for the selected distribution, click ![](https://1737632334-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MifAzdGvKLDTtvJP8sm%2Fuploads%2Fgit-blob-2f1229538e69d452928b2f47c676bf74113448d4%2Fvpn-three-dots-option.png?alt=media) and select **Delete Gateway**.

![Delete VPN Gateway](https://1737632334-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MifAzdGvKLDTtvJP8sm%2Fuploads%2Fgit-blob-e8468c785ec69184a18c7798ec373b141e2dd7fc%2Fdelete-vpn-gateway.png?alt=media)

3\. Select **Delete** to confirm deletion.

![Confirm deletion](https://1737632334-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MifAzdGvKLDTtvJP8sm%2Fuploads%2Fgit-blob-b63ac3237c12e25aced2ea2601b6c4e8ba4b141a%2Fdelete-vpn-gateway-confirm.png?alt=media)

{% hint style="success" %}
**Result:** The **STATE** of the respective VPN Gateway is set to **DESTROYING** before it is completely deleted.
{% endhint %}

![VPN Gateway in a destroying state](https://1737632334-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MifAzdGvKLDTtvJP8sm%2Fuploads%2Fgit-blob-84be439b1ec93184326351663728319bc5a1e21c%2Fdelete-vpn-gateway-tunnel-status.png?alt=media)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ionos.com/cloud/~/revisions/NfgM5VQuRjXRMfbR25yK/network-services/vpn-gateway/dcd-how-tos/delete-vpn-gateway.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
