libnvmf\_registry\_delete(9) libnvme API manual libnvmf\_registry\_delete(9)

# [NAME](#NAME)

libnvmf\_registry\_delete - Remove a controller's registry entry

# [SYNOPSIS](#SYNOPSIS)

**int libnvmf\_registry\_delete** **(struct libnvme\_global\_ctx \*ctx ,** **const char \*device );**

# [ARGUMENTS](#ARGUMENTS)

[ctx](#ctx)

libnvme global context; must not be NULL

[device](#device)

Kernel device name (e.g. "nvme3")

# [DESCRIPTION](#DESCRIPTION)

Removes the registry directory and all attribute files for *device*. Called by the owning orchestrator on intentional disconnect. The udev REMOVE rule handles the common case of kernel-driven removal directly via rm -rf and does not call this function.

# [RETURN](#RETURN)

0 on success, -ENOENT if no entry exists, negative errno from underlying system calls otherwise.

libnvmf\_registry\_delete October 2026

---

Document: libnvmf_registry_delete-libnvme3(2) from nvme-cli 3.2-r0 (Chainguard OS)
Source: https://github.com/linux-nvme/nvme-cli
