You can exclude items that are out of stock by adding a new Recommendation in the Recolize Tool. Select the “All Pages” URL and add the filter “Is item in stock = Yes”.

My recommendations show items out of stock. How to solve this?