We need to remove product from search and catalog list as some suppliers do not allow us to show stock we don't have.
As solution we tried to remove assigned category from product but as we remove the category from product, product URL consisting category slug redirects to 404 page which we don't want to happen.
Can anyone suggest any solution?