This forum is now Read-Only. The Magento Community Forum is scheduled to close permanently on December 31, 2025. Please save any necessary information before this date. Join us on Slack for continued engagement!
I do not believe there's a built in way to hide a product from the sitemap without also removing it from the site. You will probably need some custom code to modify sitemap generation to exclude products specifically or through some shared attribute value. There may be an extension to help you if you don't mind purchasing and experimenting with one of those. For example: https://www.scommerce-mage.com/magento-google-site-map-exclusion.html (I haven't used this extension vendor so this isn't a recommendation).