Method: accounts.locations.delete
HTTP リクエスト
DELETE https://mybusiness.googleapis.com/v4/{name=accounts/*/locations/*}
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
name |
string
削除するビジネスの名前。
|
リクエスト本文
リクエストの本文は空にする必要があります。
レスポンスの本文
成功すると、レスポンスの本文は空になります。
認可スコープ
次の OAuth スコープのいずれかが必要です。
https://www.googleapis.com/auth/plus.business.manage
https://www.googleapis.com/auth/business.manage
詳細については、OAuth 2.0 の概要をご覧ください。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2023-12-01 UTC。
[null,null,["最終更新日 2023-12-01 UTC。"],[[["This document explains how to delete a location using the Google My Business API."],["The DELETE request requires the location's name as a path parameter and an empty request body."],["A successful deletion results in an empty response body, while a `NOT_FOUND` error indicates the location doesn't exist."],["You'll need either `https://www.googleapis.com/auth/plus.business.manage` or `https://www.googleapis.com/auth/business.manage` OAuth scope for authorization."],["Locations that can't be deleted via the API should be managed through the Business Profile website instead."]]],["This document details the process of deleting a location via API. A `DELETE` request is sent to a specific URL, including the location's name in the path. The request body must be empty. A successful deletion results in an empty response body; `NOT_FOUND` is returned if the location doesn't exist. Deleting a location requires specific OAuth scopes: `plus.business.manage` or `business.manage`. There is also a specific `LocationState` to check if deleting a location through API is possible.\n"]]