To hide all products in a commerce category, navigate to the "System" section in the Operations Portal.
Then, click "Settings". In order to access and edit settings, you will need to be assigned one of the following roles: "administrator" or "superuser" or have the "settingEdit and settingView" roles assigned.
To narrow down the options, enter "hide" in the search field.
Click the more details icon on the "hideProductsInCategoryCode" setting.
Enter the category code in the "Value" field.
Click "Save". Once this setting is updated with a category code, the products in this category will not be viewable to customers on the commerce site.