remove_sitemap
Remove a sitemap from Bing Webmaster Tools to manage your site's search engine indexing by specifying the site and sitemap URLs.
Instructions
Remove a sitemap from Bing.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_url | Yes | ||
| sitemap_url | Yes |
Implementation Reference
- mcp_server_bwt/main.py:388-407 (handler)The complete handler function for the 'remove_sitemap' tool, including the @mcp.tool decorator which registers it. It removes a sitemap by calling the Bing Webmaster API's RemoveFeed endpoint with the provided site_url and sitemap_url.@mcp.tool(name="remove_sitemap", description="Remove a sitemap from Bing.") async def remove_sitemap( site_url: Annotated[str, "The URL of the site"], sitemap_url: Annotated[str, "The URL of the sitemap to remove"], ) -> Dict[str, str]: """ Remove a sitemap from Bing. Args: site_url: The URL of the site sitemap_url: The URL of the sitemap to remove Returns: Success message """ async with api: await api._make_request( "RemoveFeed", "POST", {"siteUrl": site_url, "feedUrl": sitemap_url} ) return {"message": f"Sitemap {sitemap_url} removed successfully"}