---
name: "libnvmf_registry_delete-libnvme3"
section: "2"
platform: "linux"
package: "nvme-cli"
version: "3.2-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/libnvmf_registry_delete-libnvme3"
---

# libnvmf\_registry\_delete-libnvme3(2)

Remove a controller's registry entry

## NAME

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

## SYNOPSIS

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

## ARGUMENTS

- ctx

  libnvme global context; must not be NULL

- device

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

## 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

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