The SEO Framework (TSF) is a popular, lightweight WordPress SEO plugin known for its clean interface, speed, and automation. Like other SEO plugins, it generates an XML sitemap to help search engines discover your content. However, not every page on a website belongs in the sitemap. Thank-you pages, private pages, thin content, and outdated posts can dilute crawl efficiency and send mixed signals to search engines. This guide explains how to delete pages from the sitemap in The SEO Framework, step by step, and why doing so can improve your SEO.
How AAMAX.CO Helps Optimise WordPress SEO Configurations
AAMAX.CO is a full-service digital marketing company offering web development, digital marketing, and SEO services worldwide. Their team works extensively with WordPress and SEO plugins like The SEO Framework, configuring sitemaps, indexing rules, canonical tags, and structured data to ensure search engines focus on a site's most valuable pages. Businesses running WordPress websites can rely on their search engine optimization expertise to keep technical configurations clean and effective.
Why Remove Pages From Your Sitemap?
An XML sitemap should list the pages you want search engines to crawl and index. Including low-value pages can waste crawl budget, create confusion about your priorities, and potentially lead to thin or duplicate content being indexed. Common pages to exclude include thank-you and confirmation pages, login and account pages, cart and checkout pages, internal search results, author archives on single-author blogs, tag archives with little content, and outdated or duplicate posts.
How The SEO Framework Handles Sitemaps
The SEO Framework automatically generates an optimised XML sitemap, typically available at yoursite.com/sitemap.xml. By default, TSF excludes pages set to noindex from the sitemap. This means the most common way to remove a page from the sitemap is to apply a noindex directive, which also tells search engines not to index the page.
Method 1: Exclude a Single Page Using Noindex
To remove an individual page or post, open it in the WordPress editor. Scroll down to The SEO Framework's settings meta box, usually located below the content editor or in the sidebar. Navigate to the Visibility tab. Under Robots Meta Settings, set the Indexing option to "Apply noindex to this page." Update or publish the page. The SEO Framework will automatically remove it from the sitemap and add a noindex meta tag.
Method 2: Exclude Entire Post Types or Archives
If you want to remove an entire post type, such as attachments or a custom post type, go to SEO in the WordPress dashboard, then open the General settings or the Robots Meta Settings section. Here you can apply noindex to specific post types, taxonomies like categories and tags, and archive types like author or date archives. Save the settings, and these items will be excluded from the sitemap.
Method 3: Disable Post Types Entirely for SEO
The SEO Framework allows you to disable SEO features for specific post types under the General settings, in the Post Type Settings section. When a post type is disabled, TSF stops outputting SEO metadata for it and excludes it from the sitemap. Use this option carefully, as it is intended for post types that should not be public at all.
Method 4: Exclude Pages by ID Using a Filter
Developers who want to remove pages from the sitemap without applying noindex can use a filter in the theme's functions.php file or a custom plugin. The SEO Framework provides filters such as the_seo_framework_sitemap_exclude_ids, which accepts an array of post IDs to exclude. This method is useful when you want a page to remain indexable but not listed in the sitemap, although in most cases noindex is the clearer signal.
Method 5: Delete or Redirect the Page
If a page is outdated or no longer needed, consider deleting it entirely or redirecting it to a relevant alternative using a 301 redirect. Deleted pages are removed from the sitemap automatically. Redirecting preserves any link equity and provides a better user experience than a 404 error.
Clearing the Sitemap Cache
The SEO Framework may cache the sitemap for performance. After making changes, clear any caching plugins and server caches. TSF also typically regenerates the sitemap automatically when content is updated. Visit your sitemap URL in a private browser window to confirm the changes.
Resubmitting Your Sitemap to Google
After updating your sitemap, open Google Search Console, go to the Sitemaps section, and resubmit your sitemap URL. This prompts Google to recrawl it. You can also use the URL Inspection tool to request recrawling of pages you have set to noindex, so Google removes them from the index faster.
Best Practices for Sitemap Management
Keep your sitemap focused on high-quality, indexable pages that return a 200 status code. Avoid including redirected, broken, or canonicalised URLs. Review your sitemap regularly, especially after adding new plugins, post types, or site sections. Ensure robots.txt references your sitemap location. Sitemap hygiene is a small but important part of a broader technical and digital marketing strategy.
Common Mistakes to Avoid
Do not block pages in robots.txt if you want them removed from Google's index, because blocked pages cannot be crawled to see the noindex tag. Avoid accidentally applying noindex to important pages. Double-check settings after plugin updates or theme changes.
Conclusion
Deleting pages from the sitemap in The SEO Framework is straightforward. The most common method is applying noindex to individual pages, post types, or archives, which automatically removes them from the sitemap. Developers can also use filters for more control, and outdated pages can be deleted or redirected. A clean, focused sitemap helps search engines prioritise your most valuable content and supports stronger SEO performance.
Want to publish a guest post on aamconsultants.org?
Place an order for a guest post or link insertion today.

