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 with the site's resource name in the URL path.\u003c/p\u003e\n"],["\u003cp\u003eAn empty request body is necessary, and a successful deletion results in an empty response body.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization requires the \u003ccode\u003ehttps://www.googleapis.com/auth/adsense\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],["This document details the process of deleting a site from an account via an API. The core action is a `DELETE` HTTP request to a specific URL, structured using gRPC Transcoding syntax. The URL includes a required path parameter, `name`, which specifies the site to be deleted using the format `platforms/{platform}/accounts/{account}/sites/{site}`. The request body must be empty. Upon success, the API returns an empty JSON object. Authorization requires the `https://www.googleapis.com/auth/adsense` OAuth scope.\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/v1alpha/{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`"]]