You can hide out of stock products in your store from your customers with few simple steps from the WooCommece dashboard as follows :

Click on WooCommerce > Settings > Products > Inventory > Hide out of stock items from catalog > Check.

This procedure makes sure that your catalog doesn't contain any products that are out of stock, and that those products won't appear to your customers.

Did this answer your question?