# unikraft volumes detach

Detach a volume from an instance.

```
unikraft volumes detach --from=instance <volume> [flags]
```

## Examples

Detach a volume from an instance:

```bash
unikraft volume detach my-volume --from my-instance
```

## Options

```
  -f, --field FIELD           Specify which fields to include in the output.
  --from instance             Name or UUID of the instance to detach from.
  -o, --output OUTPUT         Output format. One of: kv, table, json, yaml, raw, quiet, template.
```

## Options inherited from parent commands

```
  --config file               Path to the configuration file.
  --log-level level           Set the logging level. (default info)
  --log-type type             Set the log type. (default text)
  --profile name              Set the current profile.
  --telemetry                 Toggle anonymous usage analytics. (default true)
  --timeout duration          Set a deadline for the command (e.g. 30s, 5m, 1h).
```

## See Also

* [`unikraft volumes`](../volumes.mdx): Manage Unikraft Cloud volumes.

