Delete a sitemap
delete_sitemapRemove a submitted sitemap from Google Search Console using its full URL and the verified site property. Does not delete the sitemap file from your server.
Instructions
Removes a sitemap from Search Console. This does not delete the file from the site, and Google may still discover it via robots.txt — it only removes the submission. Success is an empty API response (surfaced as { ok: true, deleted }). Requires the full webmasters OAuth scope.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"site_url": "<site_url>",
"feedpath": "<feedpath>"
},
"name": "delete_sitemap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| feedpath | Yes | The full sitemap URL, e.g. "https://example.com/sitemap.xml". | |
| site_url | Yes | The property EXACTLY as registered in Search Console. Two formats: URL-prefix — a full URL with scheme and trailing slash, e.g. "https://example.com/" (http/https and www/non-www are different properties), or domain property — "sc-domain:example.com" (no scheme, no slash). A mismatched value returns 403/404; list_sites shows the exact registered values. |