I have left my cast iron pan on the heat for 2 1/2 hrs. How do I stop the release of black on paper towel and when first cooked onions?
Fully clean it
The residue is burnt seasoning (fats) that you haven't fully removed yet. It takes a surprising amount of effort, but this article describes how to completely strip your pan so that you can re-season it.