Remove Pages/Collection/Product from Sitemap But Not Google Index

I want to remove some pages , collection and products from Sitemap URL: /sitemap.xml

But i dont want to use this method suggested everywhere which says use : seo.hidden metafield: with definatin 1

because it set no index.

I want my pages, collection and products just to be removed from sitemap.xml not from Google . it should be set to default index.

Let me know if there is a way.

If this solution is not available. please let me know if there is a way to rename default sitemap url which is: /sitemap.xml to something like this /mysitemap.xml

To my knowledge what you are asking for is not possible. It might be able to achieve your desired result from another angle if you share what you are hoping to accomplish with those changes.

sitemap.xml is a helpful way for Google to index your site. Why would you want URLs removed from the sitemap.xml, but still indexed by Google

Hello,

I am San from MS Web Designer.

Here is the solution!

Modify your website’s sitemap generation process to exclude specific pages, collections, and products while keeping them indexed by search engines like Google. Implement a custom solution within your sitemap generation script or tool to selectively exclude URLs from the sitemap.xml file. This allows you to control which content appears in the sitemap without affecting their indexing status.

If you have any concerns feel free to ask me!

Regards,
San

This response sounds like it was AI generated…

You CAN NOT alter how Shopify generates the sitemap.xml (outside of no index)

How you can say it is AI Generated , this is what i am facing and looking for my website shamsherkhan.com

I don’t want my competitors to know what all products category i sale. it is simple. i do marketing using different methods for those collection products and i don’t need to show them anywhere in the website.

Please tell me what tool you are using if you are able to modify https://shamsherkhan.com/sitemap.xml