Hello,
I apologize for the inconvenience you are facing with your sitemap and attachments in Rank Math. To reset or purge the sitemap settings in Rank Math, you can follow these steps:
-
Reset Sitemap Settings: If you want to go back to the default sitemap settings in Rank Math, you can use the Rank Math’s Settings Reset option. This will reset all the settings in the Sitemap Settings, not just one section. You can find the reset button at the bottom of the page in any of the settings sections. Click the button to reset your settings. Here is an image showing where to click the reset button:

-
Confirm Reset: After clicking the reset button, Rank Math will ask for confirmation before proceeding. Click the OK button to confirm and reset your settings.
-
Backup Settings: Before resetting your settings, it’s crucial to take a backup of Rank Math’s settings. This will help avoid any problems that might arise due to accidental resets. You can find more information on how to backup Rank Math’s settings here.
If after resetting the settings, you still face issues with the attachment site maps showing in Google Search Console, you may need to exclude the attachments manually from the sitemap. You can do this by following the steps mentioned in the Rank Math knowledge base article on how to exclude content from the sitemap: Exclude Content From Sitemap » Rank Math.
If you continue to experience difficulties after following these steps, please reply to this ticket, and a human agent from the Rank Math Support team will assist you further.
Thank you for bringing this concern to our attention.
Best regards.
Sources:
How to Exclude Content From Sitemap » Rank Math
How to Configure Sitemaps in Rank Math – Best Settings and Tips
Why GSC Shows "No Referring Sitemaps Detected"
When I look at sitemap_index.xml in rank math it shows correct number of sitemaps with pages, posts and few others.
But when I submit xml to gsc it shows submission of 74 sitemaps with most as attachments xml.
Why is this happening? Is there old sitemaps I need to delete on server? I don’t see previous site maps on server. I have uninstalled and reinstalled rank math. Will reset button fix this? I let rank math import yoast data when install rank math.
Hello,
Thanks for contacting us, and sorry for any inconvenience this might have caused you.
One possible reason can be that your sitemap is heavily cached. Please follow the steps below to see if it works for you.
#1. Flush the Sitemap cache by following this video screencast:
https://i.rankmath.com/pipRDp
#2. Exclude the Sitemap files of the Rank Math plugin in your caching plugin. The cache could be via a plugin or from the server. For plugins or Cloudflare, please follow this article:
https://rankmath.com/kb/exclude-sitemaps-from-caching/
#3. If the above steps doesn’t seem to work, kindly apply the following filter code to your site.
add_filter( 'rank_math/sitemap/enable_caching', '__return_false');
Here’s how you can add filter/hook to your WordPress site:
https://rankmath.com/kb/wordpress-hooks-actions-filters/
Once done, remove all your submitted sitemaps and resubmit your main sitemap only.
Let us know how this goes.
Hello,
Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.
If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.
Thank you.