# delete

Delete a specific subnet network in your project. This command allows you to remove a subnet.&#x20;

## Usage

```
cldkctl flexi network subnet delete [flags]
```

## Aliases

```
delete, del
```

## Steps

Follow the steps below to run and view the result of this command:&#x20;

#### Interactive Mode

1. Run the following command in your terminal:

```
cldkctl flexi network subnet delete -i
```

2. The terminal displays a list of available **VPCs**. Select the VPC where the subnet is located.

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

3. The terminal displays a list of available **Subnets** in the selected VPC. Select the subnet that you want to delete.

<figure><img src="/files/0V61wZwQLFiUqYKsVJmF" alt=""><figcaption></figcaption></figure>

4. When prompted, confirm the action by selecting **Confirm**, or cancel the process by selecting **Cancel**.

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

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

5. Once completed successfully, the terminal displays the success message.

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

#### Non-Interactive Mode

1. Provide all required values using command flags.
2. Add `--auto-confirm` or `-y` to skip confirmation prompts in non-interactive mode.
3. Run the command in your terminal.
4. Once completed successfully, the terminal displays the success message.

## Flags

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

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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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.cloudeka.ai/guidance-for-individual/cloudeka-api-list/command-reference/cldkctl-flexi/network/subnet/delete.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.
