NVME-DETACH-NS(1)

πŸ’… NVME-DETACH-NS(1) β€” like, the deprecated one, bestie

okay so real talk, this is a page from the NVMe Manual, and it's the nvme-detach-ns girlie. she's giving legacy, she's giving "still here for the old scripts", and honestly? iconic of her to keep showing up. πŸŽ€

✨ NAME ✨

nvme-detach-ns β€” sends the NVMe detach namespace command and returns the result. deprecated, bestie, we're literally telling you 😭

πŸ¦‹ SYNOPSIS πŸ¦‹

nvme [<global-options>] detach-ns <device>
                        [--namespace-id=<nsid> | -n <nsid>]
                        [--controllers=<ctrl-list,> | -c <ctrl-list,>]

πŸ’– DESCRIPTION πŸ’–

So. This is a deprecated alias for nvme-ns-detach(1) β€” it's been kept around purely for scripts that were written against nvme-cli versions older than 3.0. The options and behavior are identical, no cap, the only thing that survived is the top-level command name itself. 🫢

New scripts should be using nvme ns detach instead, periodt. This alias prints a deprecation warning on stderr and may be removed in a future release, so like… don't get attached.

Heads up, bestie: nvme-ns-detach(1) has the full option reference. go read that one, it's the main character.

πŸ‘‘ GLOBAL OPTIONS πŸ‘‘

These ones are defined up at the top-level nvme command, and they're all available to this subcommand too. slay.

  • --dry-run β€” prints the command it would have executed, but doesn't actually execute it. it's giving window shopping. πŸ›οΈ
  • --no-ioctl-probing β€” turns off probing for 64-bit IOCTL support.
  • --no-retries β€” disables the retry logic on transient errors. one shot, no second chances πŸ’€
  • -o <fmt>, --output-format=<fmt> β€” sets the reporting format to normal, tabular, 'json, or binary. only one output format at a time, don't be greedy.
  • --output-format-version=<version> β€” picks the output format version. version 1 uses the original field naming, while version 2 (the default ✨) gives you more consistent and script-friendly field names. any other version? rejected. not on the list, not invited. πŸ™ˆ
  • --quiet β€” suppresses informational messages. errors still get reported (of course they do), and --quiet cancels any --verbose for the library log level.
  • --set-options=<key=value>[,<key=value>...] β€” sets libnvme library options for this invocation. supported keys are force-4k, mi-probe-enabled, test-base-dir and test-sysfs-dir.
  • --timeout=<ms> β€” sets the timeout for the command in milliseconds. infinite or -1 waits without a time limit (0xffffffff). the way that's just forever…
  • -v, --verbose β€” increases the level of detail in the output. you can stack it multiple times to get even more verbose. go off, keep going, we love a yapper πŸ’¬

Oh and also β€” these options can be set as machine-wide defaults in nvme-cli.conf(5). a command-line flag always overrides the file, always. the flag is the main character, the file is the supporting cast. 🎬

🌈 EXAMPLES 🌈

No Examples

… yeah. that's it. that's the section. she's empty. πŸ’€

🧚 NVME 🧚

Part of the nvme-user suite 🫢

⭐ SEE ALSO ⭐

  • nvme-ns-detach(1) β€” the actual one, the one you want, the upgrade. go there bestie πŸ’œ

mwah, that's a wrap! πŸŽ€ this little number is from the NVMe manual, dated 10/30/2026 β€” keep it in your bookmarks, and remember: deprecated doesn't mean unloved, it just means moved on πŸ’…βœ¨

πŸ“¦ where this page comes from