Remove a sitemap from your Search Console report
google-search-console.x.webmasters-sitemaps-deletesitemaps.delete — Deletes a sitemap from the Sitemaps report. Does not stop Google from crawling this sitemap or the URLs that were previously crawled in the deleted sitemap.
- Price
- freeAt list price
- Success rate
- 100%Last 30 days · 38 calls
- Latency p50
- 90 msp95 146 ms
- Last verified
- —Not verified yet
DELETEhttps://toolswitch.dev/v1/tools/google-search-console.x.webmasters-sitemaps-deleteBeta- Uses platform quota
- Synchronous response
- Reads public data
Parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| Path parameters | ||||
siteUrl | string | Required | Pass the raw property id; treg encodes it. For example: `http://www.example.com/` or `sc-domain:example.com`. | |
feedpath | string | Required | The URL of the actual sitemap. For example: `http://www.example.com/sitemap.xml`. | |
- Path parameters
siteUrlstringRequiredPass the raw property id; treg encodes it. For example: `http://www.example.com/` or `sc-domain:example.com`.
feedpathstringRequiredThe URL of the actual sitemap. For example: `http://www.example.com/sitemap.xml`.
Code samples
Replace $TOOLSWITCH_KEY with the key you created in the console.
Beta
curl -X DELETE 'https://toolswitch.dev/v1/tools/google-search-console.x.webmasters-sitemaps-delete' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"DELETE",
"https://toolswitch.dev/v1/tools/google-search-console.x.webmasters-sitemaps-delete",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/google-search-console.x.webmasters-sitemaps-delete", {
method: "DELETE",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());This gateway API is in beta; its URL and authentication may change. The example parameters are sample data. Calls are billed at free, including the service fee.