Files
nomad/website/content/docs/commands/volume/detach.mdx
Aimee Ukasick dae496e427 Docs: SEO front matter description for search: commands section (#25175)
* Enhance front matter description for search

* acl section

* alloc section

* config section

* deployment section

* eval section

* job section

* license section

* namespace section

* node section

* node pool section

* operator section

* plugin section

* quota section

* recommendation section

* scaling section

* sentinel section

* server section

* service section

* setup section

* system section

* tls section

* var section

* volume section

* change reference to command reference

* Apply suggestions from code review

Co-authored-by: Jeff Boruszak <104028618+boruszak@users.noreply.github.com>

---------

Co-authored-by: Jeff Boruszak <104028618+boruszak@users.noreply.github.com>
2025-03-19 12:02:02 -05:00

36 lines
1.0 KiB
Plaintext

---
layout: docs
page_title: 'nomad volume detach command reference'
description: |
The `nomad volume detach` command detaches external storage volumes with Container Storage Interface (CSI) plugins.
---
# `nomad volume detach` command reference
The `volume detach` command detaches external storage volumes with Nomad's
[Container Storage Interface (CSI)][csi] support.
## Usage
```plaintext
nomad volume detach [options] [volume] [node]
```
The `volume detach` command requires two arguments, specifying the ID of the
volume to be detached and the node to detach it from. Detaching will fail if
the volume is still in use by an allocation.
Note that you can use a node ID prefix just as you can with other Nomad
commands, but if the node has been garbage collected, you may need to pass the
full node ID.
When ACLs are enabled, this command requires a token with the
`csi-write-volume` and `csi-read-volume` capabilities for the volume's
namespace.
## General options
@include 'general_options.mdx'
[csi]: https://github.com/container-storage-interface/spec