How do I delete all untracked files from my working directory in Mercurial?

Is it possible to delete all untracked files from my working directory? Let’s say I added a bunch of files to my working directory, didn’t add them via ‘hg add’ and now want to get rid of those new files entirely?

I’m on windows, although I’m using PowerShell, so a combined solution is also possible here.

11 Answers
11

Leave a Comment