| 1 |
.TH "nvme_ns_mgmt_delete" 9 "nvme_ns_mgmt_delete" "November 2025" "libnvme API manual" LINUX |
| 2 |
.SH NAME |
| 3 |
nvme_ns_mgmt_delete \- Delete a non attached namespace |
| 4 |
.SH SYNOPSIS |
| 5 |
.B "int" nvme_ns_mgmt_delete |
| 6 |
.BI "(int fd " "," |
| 7 |
.BI "__u32 nsid " ");" |
| 8 |
.SH ARGUMENTS |
| 9 |
.IP "fd" 12 |
| 10 |
File descriptor of nvme device |
| 11 |
.IP "nsid" 12 |
| 12 |
Namespace identifier to delete |
| 13 |
.SH "DESCRIPTION" |
| 14 |
It is recommended that a namespace being deleted is not attached to any |
| 15 |
controller. Use the \fBnvme_ns_detach_ctrls\fP first if the namespace is still |
| 16 |
attached. |
| 17 |
.SH "RETURN" |
| 18 |
The nvme command status if a response was received (see |
| 19 |
\fIenum nvme_status_field\fP) or -1 with errno set otherwise. |