I have created sitemap.xml in the website. In which, Image URL coming with cdn link.
I have change setting from admin but still is showing.
I don't want to use CDN URL in the sitemap.
How to remove product image URLs from the sitemap.xml?
You don't need any custom code to disable the image from sitemap.xml.
Magento has a setting at admin from where you can disable product image from the sitemap.
Logging at admin.
Then navigate to
STORE>Configuration>Catalog>XML Sitemap>Products Options