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
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
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."]]],["This API endpoint soft-deletes an account by its name using a `DELETE` request to `https://analyticsadmin.googleapis.com/v1beta/{name=accounts/*}`. The `name` path parameter (e.g., \"accounts/100\") is required. The request body must be empty. Upon successful deletion, it returns an empty JSON object. The operation is irreversible via the API, requiring UI restoration before a certain time to prevent permanent data loss. It needs `https://www.googleapis.com/auth/analytics.edit` authorization. An error is returned if the target account is not found.\n"]]