Open a terminal window and run sudo apt install nvme-cli to install nvme-cli.
You’ll need an internet connection to download nvme-cli
sudo apt install nvme-cli
Use lsblk to find the device you want to erase.
Your drive may have a “disk” and multiple “part” types. In most cases you will want the “disk” type above the “part” types.
Run sudo nvme format /dev/<device> -s 1
sudo nvme format /dev/<device> -s 1