How can I remove URLs from the sitemap and NOINDEX,FOLLOW the removed page via the API?

Hey @jahodson3 ,

With regards to the seo “hidden” metafield mentioned in this guide, you’re correct in that adding this metafield will add both NOINDEX and NOFOLLOW tag to the resource. This is currently the only metafield that allows configuration of SEO index behaviour.

Note that this method of adding the SEO tags through a metafield has been created to allow a quick and easy way to remove a particular product/resource from search engine index and storefront search results. In cases where something has been published/indexed that a merchant wants removed, this metafield can be added to remove the resource from search engine and storefront search results. This should only be used on individual resources, and not on theme templates. If you’re looking to add just the NOINDEX tag to particular a resource, this can be done on theme templates. In case you haven’t already seen it, this guide shows how to add a liquid tag that will render a NOINDEX meta tag on the storefront for a particular resource.