mercurial command to remove all ?s (new files not under version control) - Kiln Knowledge Exchange most recent 30 from http://kiln.stackexchange.com2013-05-23T00:39:58Zhttp://kiln.stackexchange.com/feeds/question/2314http://www.creativecommons.org/licenses/by-nc/2.5/rdfhttp://kiln.stackexchange.com/questions/2314/mercurial-command-to-remove-all-s-new-files-not-under-version-controlmercurial command to remove all ?s (new files not under version control)adambox2010-10-12T13:12:43Z2010-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#2315Answer by Benjamin Pollack for mercurial command to remove all ?s (new files not under version control)Benjamin Pollack2010-10-12T13:15:14Z2010-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>