libnvme(9) API Manual libnvme(9)

# [NAME](#NAME)

enum nvme\_cmd\_format\_ses - Format NVM - Secure Erase Settings

# [SYNOPSIS](#SYNOPSIS)

enum nvme\_cmd\_format\_ses {  
**NVME\_FORMAT\_SES\_NONE** ,  
**NVME\_FORMAT\_SES\_USER\_DATA\_ERASE** ,  
**NVME\_FORMAT\_SES\_CRYPTO\_ERASE**

};

# [Constants](#Constants)

[NVME\_FORMAT\_SES\_NONE](#NVME_FORMAT_SES_NONE)

No secure erase operation requested.

[NVME\_FORMAT\_SES\_USER\_DATA\_ERASE](#NVME_FORMAT_SES_USER_DATA_ERASE)

User Data Erase: All user data shall be erased, contents of the user data after the erase is indeterminate (e.g. the user data may be zero filled, one filled, etc.). If a User Data Erase is requested and all affected user data is encrypted, then the controller is allowed to use a cryptographic erase to perform the requested User Data Erase.

[NVME\_FORMAT\_SES\_CRYPTO\_ERASE](#NVME_FORMAT_SES_CRYPTO_ERASE)

Cryptographic Erase: All user data shall be erased cryptographically. This is accomplished by deleting the encryption key.

enum nvme\_cmd\_format\_ses October 2026

---

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