How do you delete the partition table?
if the partition table is the old MBR (master boot record) then that is simply nukuing the first 512 bytes of the disk as that's where that partition table resides, and it was fixed in size. You can look all that detail up on the web easy enough about that partition table.
so for an MBR partition table to delete it that is done quite easily via dd
# if the disk whose partition table you want to erase shows up as /dev/sdb then...
dd if=/dev/zero of=/dev/sdb bs=512 count=1
The GPT (GUID partition table) on the other hand is much larger, and there is also a backup GPT partition table at the end of the disk.
https://uefi.org/specs/UEFI/2.10/05_GUID_Partition_Table_Format.html
I believe that if the disk is using 512-byte sectors then it is 512 x 32 = 16,382 bytes is how much space the GPT takes up. But disks now typically use 4096 byte sectors so 4096 x 32 = 131,072 bytes or 128kb. So change bs= accordingly to get the GPT at the beginning of the disk.
If it is of no consequence, you can simply wipe the first 1MB of the disk to be sure to get the whole table.
And then for the backup GPT at the end of the disk : Wipe last 1MB of a Hard drive
And this is assuming your partition table is one of those two which are by far the most common. But there are other partition types in existence, so it would be a matter of overwriting the disk in the proper location and to the extend needed via dd as described.
What are the differences between the various partition tables?
dd. Here's a similar question superuser.com/questions/1152069/…wipefsfdiskhas themcommand to get help. you should seed delete a partition... that's how you can delete partitions ... or evengto create an empty GPT table, oroto create an empty DOS (mbr?) partition table - after any of those,wto write the new partition table and exitwipefswould be the correct tool here. It even helpfully said what it did - erasing the protective MBR and GPT at the start and the secondary GPT header at the end. @meuh yea, that's a good point, but also you skipped the secondary GPT, whichwipefsdid not.