Method: accounts.delete
ターゲット アカウントをソフト削除(「ゴミ箱に移動」)としてマークし、返します。
この API には、ソフト削除されたアカウントを復元するメソッドはありません。ただし、ゴミ箱の UI を使用して復元できます。
アカウントが有効期限までに復元されなかった場合、アカウントとすべての子リソース(プロパティ、GoogleAdsLinks、ストリーム、AccessBindings など)は完全に削除されます。https://support.google.com/analytics/answer/6154772
ターゲットが見つからない場合はエラーを返します。
HTTP リクエスト
DELETE https://analyticsadmin.googleapis.com/v1beta/{name=accounts/*}
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
name |
string
必須。ソフト削除するアカウントの名前。形式: accounts/{account} 例: accounts/100
|
リクエストの本文
リクエストの本文は空にする必要があります。
レスポンスの本文
成功すると、レスポンスの本文は空の JSON オブジェクトになります。
認可スコープ
次の OAuth スコープが必要です。
https://www.googleapis.com/auth/analytics.edit
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-01-14 UTC。
[null,null,["最終更新日 2025-01-14 UTC。"],[[["Marks an account as soft-deleted, effectively sending it to the trash but allowing for restoration before permanent deletion."],["Permanently deletes the account and all associated resources after a certain expiration time if not restored."],["Requires the `analytics.edit` OAuth scope for authorization."],["Uses a `DELETE` request to the specified endpoint with the account ID as a path parameter."],["The request body should be empty, and a successful operation will return an empty response body."]]],[]]