Deleted post still on the sitemap

  • Hi,

    My website is new and not indexed in GSC yet – I still have the “ask crawlers not to index site…” checked on wordpress reading settings page.

    I installed RM and activated Sitemap function

    I saw that it included a link in the generated sitemap about a test post I wanted to delete

    I deleted that post, excluded its ID from the sitemap settings page in RM, executed your general recommandations:

    “1. Head over to WordPress Dashboard > Settings > Permalinks

    Hit the save button once.

    2. Go to WordPress Dashboard > Rank Math > Sitemap Settings

    Hit the save button once.

    That should refresh the links on the sitemap.”

    But the link of the deleted post is still in the sitemap.

    Can you help?
    I’m waiting for this link to be gone before submitting the sitemap to GSC
    Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Update: problem solved by deleting remaining Yoast data from Status & Tools/Plugin Importers RM page.

    One problem remains: 1 product category that I manually excluded by placing its ID in the “exclude terms” field is still in the sitemap.
    Any idea?

    Thanks again

    Hi Stephane,

    Thanks for getting in touch with us.

    This is just due to cache.

    You can add this code to your theme’s functions.php file to disable cache:

     * Filter if XML sitemap transient cache is enabled.
     * @param boolean $unsigned Enable cache or not, defaults to true
    add_filter( 'rank_math/sitemap/enable_caching', '__return_false');

    You can remove it once you see the updated Sitemap.

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    Hi Todd,

    Thanks for your reply.
    It was the cache indeed 🙂
    Thanks for your help and a great SEO plugin – way better than everything I tried before!

    Hi Stephane,

    I am so glad to be of help. We are always here if you need us in the future. You can remove the code we gave you in case you wish to enable the cache once again.

    Hey, if it isn’t too much to ask for – would you mind leaving us a review here?

    It only takes a couple of minutes but helps us tremendously.

    It would mean so much to us.

    Thank you.

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

The ticket ‘Deleted post still on the sitemap’ is closed to new replies.