> 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/instance/detach-interface.md).

# detach-interface

Detach an interface from a flexi instance in your project. This command allows you to detach an interface from a flexi instance.

## Usage

```
cldkctl flexi instance detach-interface [name] [flags]
```

## 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 instance detach-interface [instance-name] -i
```

2. Replace **\[instance-name]** with the name of the instance.
3. Select the **interface** that you want to detach.

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

4. Confirm the interface detachment by selecting **Confirm**.

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

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

<figure><img src="/files/5Oracnm2XRtIEZf2jFWc" 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="/files/7yPGofbLI5Kxojc2YaV1" 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 detach-interface                                 |
| --interactive  | -i        | false   | Force interactive TUI mode                                |
| --interface-id |           |         | Interface ID to detach (required in non-interactive mode) |
| --project      | -p        |         | Specify project ID                                        |
