Hello,
Thank you for contacting Rank Math, and sorry for any inconvenience caused.
Editing an already existing sitemap file is not possible with Rank Math, but if you have enabled the sitemap module in the Rank Math dashboard, then Rank Math will generate a virtual sitemap.

Once done, you need to replace the old sitemap link with the one generated by Rank Math in the Search Console.
Only submit the sitemap_index.xml
file in the Search Console.
I hope this helps. Looking forward to helping you.
Hi Anas,
Thank you for your reply.
Just to confirm, I need to activate the sitemap setting in Rankmath which will create a virtual sitemap and appears as a new link in Search Console ?
Then delete the old sitemap in Search Console?
Many thanks
James
Hello,
Yes, to use the Rank Math sitemap you need to enable the sitemap module.
Then, check your sitemap at yourdomain.com/sitemap_index.xml
If everything is correct, replace the old sitemap with this new sitemap in the search console.
I hope this helps. Looking forward to helping you.
Hi Anas,
Also, do I delete the old sitemap in Search Console before copying and pasting the url from Rankmath?
Many thanks
James
Hello,
Yes, You need to delete the old sitemap and submit only the sitemap_index.xml
in the search console.
I hope this helps. Looking forward to helping you.
Hi Anas,
Thanks again for your help, really appreciate it!
Take care
Hello,
We are super happy that your issue is resolved. If you have any other questions in the future, know that we are here to help you.
If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.
If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.
Thank you.