How to exclude some categories from the widget

I want to exclude some categories that I don't want to show on the sidebar, not delete them.