Boot to your El Capitan installer.
If you don't have a copy of the installer, then just boot to Internet recovery (restart, holding Command-Option-R)
Erase the 2011 hard drive.
Reinstall El Capitan (or whatever system is presented in Internet Recovery, if that's what you want to do)
When the installer reboots to the new user setup, shut your iMac off. Leave that setup for the new owner.
I only have An actual disc of Lion OSX, should I just reinstall high Sierra for the potential buyer? How do I install a fresh copy of high Sierra?
I'd just install high sierra. You can download it here:
Get macOS High Sierra
You only need a USB flash drive with 8GB of storage to make an installer USB. Here's how to make one:
https://support.apple.com/en-us/HT201372
If you want to to an erase and install High Sierra, then you need to get a copy of the High Sierra installer.
You can download that installer app from this link.
Make a bootable installer using the instructions from this page. I like 8GB flash drives, but 16GB is easier to find now.
Boot to your new installer drive. Erase the internal HD, then reinstall macOS.
[doublepost=1554518548][/doublepost]
Great minds think alike
You DID start by asking about the "safest way to do this". "Safest", to me, is the same as "secure', which then means at least a full erase of the drive. That will assure that your own data and files are for all practical purposes, gone forever.
(Consider that your passwords likely still exist on the drive, difficult to retrieve, for sure, but still there. Full erase is your best bet. Removing random apps, leaving your previous system intact doesn't quite do the trick. Full erase, then reinstall, using the bootable installer is your simple way to the safest result.
The bootable installer is NOT difficult to make, and gives a bit of extra value for the new buyer, if you put that bootable installer in the box when you sell the old iMac. (And, you know that the drive gets erased, because you did that)
The thing is that i havent updated my iMac in a long time which is why its on El Capitan, I much rather re-install El Capitan than upgrade it to High Sierra, How do i do a full restore to El Captian?
i'm afraid something might go wrong during the restore which will corrupt the hard drive or anything like that which will make me then be unable to sell the computer, its been running fantastic on El Capitan all these years
I only have An actual disc of Lion OSX, should I just reinstall high Sierra for the potential buyer? How do I install a fresh copy of high Sierra?