Clear Partition table

How can I clear the partition table from a script, similar to fdisk -z
/dev/hd0 , in non-interactive mode?

If you type: “use /sbin/fdisk”, the help message says that if you do:
“fdisk /dev/hd0 delete -a” it will wipe your partition table.

Daryl Low

Les Uzar wrote:

How can I clear the partition table from a script, similar to fdisk -z
/dev/hd0 , in non-interactive mode?