If you have an older Intel Mac from 2007 to 2015 (non-USB-C), or access to a Windows PC, then you can create & use a bootable ShredOS USB stick to overwrite the whole Hard Drive. To allow ShredOS to boot on many current Windows PCs you may need to temporarily disable Secure Boot since I'm doubtful the ShredOS USB stick supports a PC configured with Secure Boot enabled.
Otherwise you would need to find a third party app for macOS which can securely erase the external Hard Drive (no idea or suggestions since I've never needed one), or use the command line as suggest by @Urguhart1244. Here are the instructions for using the command line to write zeroes to the drive.
First you must get the device identifier for the external Hard Drive you wish to securely wipe. You can get the device identifier by using Disk Utility. The device identifier is in the form of "diskX" where "X" is a number. You need to retrieve the device identifier just before using the Terminal commands since the device identifier can change each time you connect the drive or restart the computer. Using the wrong device identifier will cause you to erase an unintended drive instead.
Once you have the correct device identifier for the Hard Drive you wish to erase, you can use the following Terminal commands:
Unmount all volumes on the selected drive with device identifier "diskX" (replace "diskX" with the correct device identifier for your Hard Drive):
diskutil unmountDisk diskX
This command will write zeroes to the whole physical drive which has the device identifier "diskX" (again replace "diskX" with the correct device identifier):
sudo dd if=/dev/zero of=/dev/diskX bs=10m
This second command will prompt you for your admin password. Nothing will appear on the screen as you type the password. Press the "Return" key to submit the password. This second command is the one which will overwrite the drive so make sure you have selected the correct device identifier. I highly recommend you first disconnect all other external drives to minimize the chances of a catastrophic mistake.
Unfortunately this command will not show the progress. It can take days or even a week or more depending on the size, speed, and health of the Hard Drive you are erasing. You must not let the Mac sleep or power down, or disconnect the drive during this procedure or you will have to start over. Technically if you have the location of the last write to the drive, it may possible to give that as an option to this command (unless this version of the utility is too old to support that option). I've never had to try restarting in the middle of an erase.