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

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

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2Fgit-blob-4c1fd94f0d71716a82f068953b086176f74315e5%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-5141b23d42c46968496a55a304cc90569aab9be5%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-65f661982e86e717204fbc9c0503b2380c4cc5e4%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 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                                        |
