# Delete IPSec Tunnel or a WireGuard Peer

You can delete the tunnel/peer that is associated with the chosen VPN Gateway protocol.

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

2\. In the **VPN Gateways** window, click on the name of the VPN Gateway to delete an associated peer/tunnel. Alternatively, you can also click ![Options menu](/files/4BD8iJjl6t64oljcxZq3) and select **Details and Edit** from the **OPTIONS** column.

![Select a VPN Gateway to delete an associated peer/tunnel](/files/QOzGPKf3fMzV80hGLDhc)

3\. Follow these steps to delete a tunnel or a peer:

{% tabs %}
{% tab title="Tunnels" %}
1\. For the selected VPN Gateway, you can choose **Tunnels** tab to view tunnels for selected VPN Gateway.

2\. Select **Delete** to delete selected Tunnel.

![Delete a Tunnel](/files/ht4ECW0RiaMRVbUDeEPY)

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

![Confirm deletion](/files/E99ckVpfKWk1bkaaMV5F)

{% hint style="success" %}
**Result:** The selected Tunnel is deleted and it is no longer associated with the VPN IPSec Gateway.
{% endhint %}
{% endtab %}

{% tab title="Peers" %}
1\. For the selected VPN Gateway, you can choose **Peers** tab to view peers for selected VPN Gateway.

2\. Select **Delete** to delete selected Peer.

![Delete a Peer](/files/HHBkej5XiVZvkIiVGTZS)

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

![Confirm deletion](/files/5NyAX711zhnxqYguhWS2)

{% hint style="success" %}
**Result:** The selected Peer is deleted and it is no longer associated with the VPN WireGuard Gateway.
{% endhint %}
{% endtab %}
{% endtabs %}


---

# 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/network-services/vpn-gateway/dcd-how-tos/delete-peer-tunnel.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.
