UFS gpart (delete) : Invalid value for 'i' argument: Invalid argument

Hello friends

I'm trying to wipe one of my hard drives and partition it again from the beginning
I used the following command to do this

gpart delete -i ada0


And I entered with the following error:

gpart: Invalid value for 'i' argument: Invalid argument


Where did I go wrong?
 
-i requires an index number. 1 for the first partition, 2 for the second, etc.

Code:
     delete        Delete a partition from geom geom and further identified by
                   the -i index option.  The partition cannot be actively used
                   by the kernel.

                   The delete command accepts these options:

                   -f flags    Additional operational flags.  See the section
                               entitled OPERATIONAL FLAGS below for a
                               discussion about its use.

                   -i index    Specifies the index of the partition to be
                               deleted.
See gpart(8).
 
Back
Top