remove_sitemap
Remove a sitemap from Bing Webmaster Tools by specifying the site URL and sitemap URL to manage search engine indexing.
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 handler function decorated with @mcp.tool(name="remove_sitemap"), which registers the tool and implements the logic to remove a sitemap by calling the Bing Webmaster API's RemoveFeed endpoint.@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"}
- mcp_server_bwt/main.py:388-388 (registration)The @mcp.tool decorator registers the remove_sitemap tool with the MCP server.@mcp.tool(name="remove_sitemap", description="Remove a sitemap from Bing.")