My deleted posts are still in the sitemap

  • Resolved Isabella

    Hello There,

    I have recently downloaded a report of all my posts from the site map and I noticed that the posts that I had deleted a long time ago are still on the map? They are not supposed to be there. Can you tell me how to fix this? thanks a lot

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    Thanks for contacting us, and sorry for any inconvenience that might have been caused due to that.

    Can you please try following the steps below to see if that works for you?

    1. Flush the Sitemap cache by following this video screencast:

    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:

    3. 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:

    Let us know how it goes. Looking forward to helping you.

    Thank you.

    thanks a lot it worked!


    We are super happy that this resolved your issue. 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 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.

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this ticket.