Thank you very much!
I think I might have another solution as well, altough I'm not sure if it works in all cases. I have placed it into this knowledge base article: https://wp-dreams.com/knowledge-base/woocommerce-showing-products-in-stock-only/
..the difference is that his one will completely remove the products if not in stock from the results.Best,
If you like my products, don't forget to rate them on codecanyon :)