it depends on what level of security you require.
at national security level, or concerns about police/jail etc you physically destroy the drive, overkill, like in a crusher or pickaxe, hammer, small bits.
Youtube has many semi entertaining videos on how one might do this
at the "i'm selling this and am scared some (ebay) crook might have tech knowledge" - use a reputable utility that covers even hidden sections of the drive and verify.
If the drive allows it use an internal "secure erase" which the drive controls, not the OS, don't do anything until it completes as it may lock the drive.
at the "I'm selling this; it's got non critical data but i don't want people looking or trying to recover docs/pics/vids etc" - same as above or dd it and verify.
at the internal redeploy level, any of the above repartiton and high/low level format (not Quick)
be careful of naming conventions though
https://en.wikipedia.org/wiki/Disk_form ... tting_(LLF)_of_hard_disks
whichever means, use some sort of hex editor to visually check the drive is full of zero/random, after you erase.
K