you can find this by searching..been discussed tons of times
there are 2 ways
1 is with the inbox extender which adds the option to the menu
www.scottschrob.com/q/apps.htm
the other is by going in to folder list mode on the Q and using the right soft key to 'clear all messages'