Can not erase external drive
I have an external hard drive that I would like to erase. When I try to do so via Disk Utility I get the following error: "Couldn't unmount disk. Operation failed." When I click the "unmount" button to unmount the disk, nothing happens. I used terminal to try and force the disk to unmount. That DOES work. However, the external drive then disappears from my Desktop. It still shows in Disk Utility but when I try and erase it I get the following error: "posix reports: the operation couldn't be completed. Input/output error", at which point the external drive disappears from Disk Utility.
I have to send this disk back to the manufacturer as I was having issues with it and I really need to erase it before I do. Any ideas as to what to do?
MacBook Pro, OS X El Capitan (10.11.6), null