Magento disabled products are showing in google search results. When user clicks any of links, shows 404 error page. users should not see disabled products link on google search. How can I remove these links from Google search?
I guess the reason for that is that those products where indexed when they were visible in your catalog in the storefront.
Were those products visible before?
we have 500 to 1000 products which were visible before but we need to modify data of those products after that we will enable them.
If you are going to re-enable the disabled products in the nearest future, there is no need to de-index them in Google. However, you should know that changing you product pages in such a way (disabling and enabling them some time later) is not beneficial for SEO, and Google may lower ranking of such URLs.
However, if you want to disable the products completely and remove them from Google index, you can do it via Google Search Console or just 301 redirect the old pages to the relevant URLs on your site (the latter is preferred).
This is a very normal issue with ecommerce sites, where products get removed, replaced, out of stock etc.
If that product will never be offered in future, then show this message on that page or return 404. This will auto de-index it soon
In case you will offer same product in future, then show a custom message that currently this product is not available.