For some reason you need to set a password to use hdparm
:
hdparm --user-master u --security-set-pass PASS /dev/sdx
And then the actual command:
hdparm --user-master u --security-erase PASS /dev/sdx
After that, you can just remove the password as it will just get in the way:
hdparm --user-master m --security-disable PASS /dev/sdx
reference: https://skrilnetz.net/the-truth-about-how-to-securely-erase-a-solid-state-drive-ssd/