Once you press "Confirm," there is no undo button. Proceed with caution.
sudo nvme format /dev/nvmeXn1 -s 1