I accidentally exposed a private key in one of my files when I pushed it to github. Thankfully I got a warning email from google about my api being exposed. After I updated the file and pushed the commit, i have been unable to delete my previous commits.
Is it possible to delete previous commits on github or do I have to delete my repositoy and start all over again?