How do you securely erase data on an NVMe SSD?

NVMe Technology SSDs

There are multiple commands in the NVMe specification to securely erase user data. The NVMe format command includes support for crypto erase to quickly erase user data by switching the crypto key, as well as full media erase which today physically erases the NAND. Sanitize is the other command to erase user data. It has the same capabilities as format, while also removing Metadata, information from the queues, and guarantees completion by automatically starting after a device reset.