Hello,
Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for any inconvenience this issue may have caused you.
It seems that you have already marked this ticket as already resolved. Could you please confirm?
If the issue still persists, please share the affected attachment URL/s so we can check as well.
Looking forward to helping you.
Thank you.
I have set the option of attachments in titles & meta to noindex and then edited the media files i needed indexed.
But this is not a fix and you should have a premenant fix for this issue
Hello,
The deleted images are showing in the attachment-sitemap.xml due to cache.
Please follow these steps clear the sitemap caching and exclude sitemap files from cache:
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/
Hope that helps. Please let us know if you have questions.