Method: platforms.accounts.sites.delete
Stay organized with collections
Save and categorize content based on your preferences.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-22 UTC.
[null,null,["Last updated 2025-01-22 UTC."],[[["\u003cp\u003eDeletes a specific site from a designated AdSense account.\u003c/p\u003e\n"],["\u003cp\u003eRequires an HTTP DELETE request to the specified endpoint, including account and site identifiers.\u003c/p\u003e\n"],["\u003cp\u003eUses the \u003ccode\u003ehttps://www.googleapis.com/auth/adsense\u003c/code\u003e authorization scope for access.\u003c/p\u003e\n"],["\u003cp\u003eThe request body should be empty, and a successful deletion results in an empty response body.\u003c/p\u003e\n"]]],["This document details the process of deleting a site from an AdSense account using a `DELETE` HTTP request. The request URL, employing gRPC Transcoding syntax, targets a specific site via its `name` path parameter (format: `platforms/*/accounts/*/sites/*`). The request body must be empty. A successful deletion results in an empty JSON object response. This action requires the `https://www.googleapis.com/auth/adsense` OAuth scope for authorization. The user can test it by using the `Try it!` button.\n"],null,["# Method: platforms.accounts.sites.delete\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nDeletes a site from a specified account.\n\n### HTTP request\n\n`DELETE https://adsenseplatform.googleapis.com/v1/{name=platforms/*/accounts/*/sites/*}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|--------|-----------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Required. The name of the site to delete. Format: platforms/{platform}/accounts/{account}/sites/{site} |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body is an empty JSON object.\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/adsense`"]]