> For the complete documentation index, see [llms.txt](https://docs.cloudeka.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cloudeka.ai/cloudeka-api-list/command-reference/cldkctl-vpn/delete-ipsec-phase.md).

# delete-ipsec-phase

The vpn delete-ipsec-phase command allows you to delete an existing IPSec Phase 2 configuration from a VPN instance. This command removes the specified IPSec Phase 2 resource, including its subnet and peer network settings.

## Usage

```
cldkctl vpn delete-ipsec-phase [flags]
```

## Steps

Follow the steps below to run and view the result of this command:

1. Run the following command in your terminal:

```
cldkctl vpn delete-ipsec-phase
```

2. Enter your VPN instance name in the VPN Name field. You can refer to vpn list to obtain or verify your VPN instance name.
3. Enter the public IP address of your VPN in the IP Public field. The public IP can be obtained by referring to vpn list.
4. Enter the subnet address in the IP Subnet field. The subnet information can be obtained by referring to vpn list-ipsec-phase2.
5. Enter the description used for the IPSec Phase 2 configuration in the Description Phase 2 field. The description must match the one used during creation and can be verified via vpn list-ipsec-phase2.
6. Confirm the process by pressing y for Confirm or n for Cancel.

<figure><img src="/files/zrLPK3Y3oLDZk94JC6lJ" alt=""><figcaption></figcaption></figure>

7. Once successful, the terminal displays **"✓ IPSec Phase 2 successfully deleted".**

<figure><img src="/files/xbZNKoC6AC7OxCVdrinE" alt=""><figcaption></figcaption></figure>

## Flags

{% hint style="info" %}
This command supports [global flags. ](/cloudeka-api-list/global-flags.md)Refer to the Global Flags section for details.
{% endhint %}

| Flag       | Description                          |
| ---------- | ------------------------------------ |
| -h, --help | Help for delete ipsec phase command. |
