github.com/Ilhicas/nomad@v1.0.4-0.20210304152020-e86851182bc3/website/content/docs/commands/volume/detach.mdx (about) 1 --- 2 layout: docs 3 page_title: 'Commands: volume detach' 4 sidebar_title: detach 5 description: | 6 Detach volumes with CSI plugins. 7 --- 8 9 # Command: volume detach 10 11 The `volume detach` command detaches external storage volumes with Nomad's 12 [Container Storage Interface (CSI)][csi] support. 13 14 ## Usage 15 16 ```plaintext 17 nomad volume detach [options] [volume] [node] 18 ``` 19 20 The `volume detach` command requires two arguments, specifying the ID of the 21 volume to be detached and the node to detach it from. Detaching will fail if 22 the volume is still in use by an allocation. 23 24 Note that you can use a node ID prefix just as you can with other Nomad 25 commands, but if the node has been garbage collected, you may need to pass the 26 full node ID. 27 28 When ACLs are enabled, this command requires a token with the 29 `csi-write-volume` and `csi-read-volume` capabilities for the volume's 30 namespace. 31 32 ## General Options 33 34 @include 'general_options.mdx' 35 36 [csi]: https://github.com/container-storage-interface/spec