If you want to remove a product or an entire collection that is no longer available in your inventory, then you can do it from the products section. However, once you remove the products from your store, you can’t restore them again. So it would be best just to hide the product when the stock runs out, and when it is available again, just unhide it.