sites_delete
Remove a site property from Google Search Console by specifying its URL to manage your verified properties list.
Instructions
Remove a site (property) from Google Search Console.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| siteUrl | Yes | The site URL to remove |
Implementation Reference
- src/index.ts:211-232 (handler)The `sites_delete` tool handler, which uses `apiCall` with `method: "DELETE"` to remove a site from Google Search Console.
server.tool( "sites_delete", "Remove a site (property) from Google Search Console.", { siteUrl: z.string().describe("The site URL to remove"), }, async ({ siteUrl }) => { try { const result = await apiCall( `${WEBMASTERS_BASE}/sites/${encodeSiteUrl(siteUrl)}`, { method: "DELETE" }, ); return { content: [ { type: "text" as const, text: result.ok ? `Site "${siteUrl}" removed successfully.` : result.body, }, ], isError: !result.ok,