Delete a local commits in Mercurial

Find the .hgrc or Mercurial.ini file and add the following to it:

[extensions]
mq =

and type:

hg strip #changeset#

Where #changeset# is the hash for the changeset you want to remove.