> 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-flexi/network/port/delete.md).

# delete

Delete a specific port network in your project. This command allows you to remove a port by providing its unique identifier (port ID).

## Usage

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

## Aliases

```
delete, del
```

## Steps

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

#### Interactive Mode

1. Run the following command in your terminal:

```
cldkctl flexi network port delete -i
```

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

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2Fgit-blob-62425ac5c6fd115ba042624a27e2dd4ca51313ab%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2Fgit-blob-0adbbe5957ffb26ea518f64c3481c31738f7294f%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2Fgit-blob-1abffa92f710de717ca32e84ed2083953fcf3f99%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2Fgit-blob-b405e46bd5890803202c33ae7df9735e6886d41b%2Fimage.png?alt=media" 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.

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2Fgit-blob-5cef2e6356ac48d4b29be32725a55e04faf4545b%2Fimage.png?alt=media" 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           | Shorthand | Default | Description                                      |
| -------------- | --------- | ------- | ------------------------------------------------ |
| --auto-confirm | -y        | false   | Skip confirmation prompt in non-interactive mode |
| --help         | -h        |         | Help for the delete command.                     |
| --interactive  | -i        | false   | Force interactive TUI mode                       |
| --port-id      |           |         | Port ID (required in non-interactive mode)       |
| --vpc-id       |           |         | VPC ID (required in non-interactive mode)        |
