how to exclude product category

I want to exclude some product categories from the list of product categories displayed on the sidebar. How do I exclude like can be done for post categories