Question: I am designing a jsp web page for mobile web. I need to uniquely identify the user device (say: IMEI,or any other Unique id) such that i can identify them when they login again. Pls help me.

Answer: 
To remove **all** binary files from a repository, you can use [Mercurial filesets](http://selenic.com/hg/help/filesets):

```
hg remove "set:binary()"

```

And as the other posters mentioned, it's a great idea to add unwanted extensions in the .hgignore file.
You should be able to remove them like any other file `hg remove *.pyc`. You probably want to add .pyc to the .hgignore file to keep them from coming back when you use addremove.

In general though, you should be using `hg add` to selectively add files in the future, given that as the project develops, what files it contains should stabilize relatively quickly.