If you want to do it temporarily then the easiest way is to use the Filter boxes you can add to your toolbars.
If you want to save such a filter so it's always used then you can do that via Folder Options.
In both cases the filters do not affect the tree, so you can set a Hide-Folder Filter of * to remove all folders from the file display area.