However, the disk utility does give you the option to erase the disk and provides several security levels of erase to choose from.
Here is the Disk Utility Erase dialog from Catalina. Other OSs will be similar. Click on Security Options:
Move the slider one step to the right and then click OK and then Erase in the first dialog.