mercurial command to remove all ?s (new files not under version control) - Kiln Knowledge Exchange most recent 30 from http://kiln.stackexchange.com 2013-05-23T00:39:58Z http://kiln.stackexchange.com/feeds/question/2314 http://www.creativecommons.org/licenses/by-nc/2.5/rdf http://kiln.stackexchange.com/questions/2314/mercurial-command-to-remove-all-s-new-files-not-under-version-control mercurial command to remove all ?s (new files not under version control) adambox 2010-10-12T13:12:43Z 2010-10-12T13:15:14Z <p>I have a ton of <code>?</code>s in my working copy that I want to delete. Is there an hg command to delete all files which aren't under version control (and aren't <code>hgignore</code>d)?</p> http://kiln.stackexchange.com/questions/2314/mercurial-command-to-remove-all-s-new-files-not-under-version-control/2315#2315 Answer by Benjamin Pollack for mercurial command to remove all ?s (new files not under version control) Benjamin Pollack 2010-10-12T13:15:14Z 2010-10-12T13:15:14Z <p>There is an extension bundled with Mercurial called <code>purge</code> that can do this. Simply enable the extension by adding <code>hgext.purge=</code> to the <code>[extensions]</code> portion of your <code>.hgrc</code> or <code>Mercurial.ini</code> file, and then run <code>hg purge</code>.</p>