I highly recommend you create a bootable macOS 10.11 El Capitan USB installer now while you still can.
Create a bootable installer for macOS - Apple Support
To make sure the data is gone from the internal Hard Drive, you will need to boot from your USB installer. When you use Disk Utility to erase the drive....make sure to also select the option to secure erase the Hard Drive so that zeroes will be written to the entire drive & obliterating any data on it. Or you could boot normally to your internal drive & enable Filevault.....let Filevault finish encrypting the Hard Drive where afterwards a simple erase with Disk Utility will be enough to destroy the data since you will be destroying the encryption key.
If your iMac has just an SSD, then a simple normal erase is sufficient to destroying the data on the SSD since SSDs work differently than Hard Drives.
If your iMac has a Fusion Drive setup, then it has both an SSD and a Hard Drive. You need to use the secure erase on the Hard Drive portion or you need to enable Filevault. If you want to rebuild the Fusion Drive & reinstall macOS afterwards, then you will need the information in the following Apple article (probably not needed if being recycled versus sold, but just in case):
How to fix a split Fusion Drive - Apple Support