Removing the last commit
To remove the last commit from git, you can simply run git reset --hard HEAD^
If you are removing multiple commits from the top, you can run git reset --hard HEAD~2 to remove the last two commits. You can increase the number to remove even more commits.
If you want to "uncommit" the commits, but keep the changes around for reworking, remove the "--hard": git reset HEAD^
which will evict the commits from the branch and from the index, but leave the working tree around.
If you want to save the commits on a new branch name, then run git branch newbranchname
before doing the git reset.
old commits that are not part of any branch anymore will get garbage collected, typically in 30 days or so. There's a good chance the commit is not there anymore @nmz787-intel. If you look up how the garbage collection is done, perhaps you can find a way to really hard-delete it.
I'd recommend against it though, and just let 'nature'/gc take its course https://stackoverflow.com/questions/1904860/how-to-remove-unreferenced-blobs-from-my-git-repository