To ensure the best customer experience, you can hide sold-out products with the help of the Stockyphi app. You can install it in one click, and your stock levels will be automatically synced. When a certain item is no longer available, the app will hide it from the store, and when it returns back, the app will republish it. No manual action needed.
To avoid issues with error pages, Stockyphi lets you create redirects for deleted products: you can redirect to a homepage or any other URL you want.
If you have less than 100 products in your catalog, you can use the app for free. The Basic plan for larger-scale merchants starts at $5 per month.