NVME-REGISTRY-DELE(1)

NAME
nvme-registry-delete - Remove a controller's registry entry or attribute

SYNOPSIS

nvme [<global-options>] registry delete <device>
                        [--attr=<ATTR> | -a <ATTR>]

DESCRIPTION

Remove the ownership registry entry for an NVMe-oF controller, or a single attribute from it. The registry entry is the directory /run/nvme/registry/<device>/ and all attribute files it contains.

The <device> is the NVMe controller name (e.g. nvme3), given as a positional argument; the /dev/ prefix is optional.

Without --attr the whole entry is removed. With --attr only that one attribute file is removed, leaving the rest of the entry in place.

Under normal operation registry entries are removed automatically: a udev rule fires on the kernel REMOVE event and deletes the entry. This command is provided for manual cleanup or for orchestrators that want to explicitly release ownership before disconnecting.

Removing the whole entry, or the owner attribute specifically, drops ownership and can stop an orchestrator from protecting the controller, so it prompts for confirmation when run interactively; non-interactive callers (scripts) proceed without prompting. Removing any other attribute does not affect ownership and proceeds silently.

OPTIONS

-a <ATTR>, --attr=<ATTR>
    Attribute to remove. If omitted, the whole entry is removed.

GLOBAL OPTIONS

The following options are defined at the top-level nvme command and are available to this subcommand:

--dry-run
    Print the command that would be executed, but do not actually execute it.

--no-ioctl-probing
    Disable probing for 64-bit IOCTL support.

--no-retries
    Disable retry logic on transient errors.

-o <fmt>, --output-format=<fmt>
    Set the reporting format to normal, tabular, 'json, or binary. Only one output format may be used at a time.

--output-format-version=<version>
    Select the output format version. Version 1 uses the original field naming, while version 2 (default) provides more consistent and script-friendly field names.

--timeout=<ms>
    Set the timeout for the command in milliseconds.

-v, --verbose
    Increase the level of detail in the output. May be specified multiple times to further increase verbosity.

These options can also be set as machine-wide defaults in nvme-cli.conf(5). A command-line flag always overrides the file.

EXAMPLES

    • Remove the registry entry for nvme3:

        # nvme registry delete nvme3

    • Remove a single attribute, leaving the rest of the entry:

        # nvme registry delete nvme3 --attr note

SEE ALSO

nvme-registry-list(1) nvme-registry-retrieve(1) nvme-registry-update(1) nvme-disconnect-all(1)

NVME

Part of the nvme-user suite