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

# detach

Detach a specific flexi storage from a compute instance by their IDs.

## Usage

```
cldkctl flexi storage detach [flags]
```

## Aliases

```
detach, dett
```

## Steps

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

1. Refer to the [**Flexi Storage List**](/cloudeka-api-list/command-reference/cldkctl-flexi/storage/list.md) section to obtain the **storage ID**.
2. Run the following command in your terminal:

```
cldkctl flexi storage detach [storage_id] 
```

3. Replace **\[storage\_id]** with the actual storage ID.
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-a028a59c0de14625a3f1d786acedce34c2f2434b%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 | Description                  |
| ------ | --------- | ---------------------------- |
| --help | -h        | Help for the detach command. |
