Method: drives.delete
ลบไดรฟ์ที่แชร์ที่ผู้ใช้เป็น organizer
ออกอย่างถาวร ไดรฟ์ที่แชร์ต้องไม่มีรายการที่นำออกจากถังขยะ
คำขอ HTTP
DELETE https://www.googleapis.com/drive/v2/drives/{driveId}
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
driveId |
string
รหัสของไดรฟ์ที่แชร์
|
พารามิเตอร์การค้นหา
พารามิเตอร์ |
useDomainAdminAccess |
boolean
ส่งคำขอในฐานะผู้ดูแลระบบโดเมน หากตั้งค่าเป็น "จริง" ผู้ขอจะได้รับสิทธิ์เข้าถึงหากเป็นผู้ดูแลระบบของโดเมนที่เป็นเจ้าของไดรฟ์ที่แชร์
|
allowItemDeletion |
boolean
ควรลบรายการภายในไดรฟ์ที่แชร์ด้วยหรือไม่ ระบบจะรองรับตัวเลือกนี้เมื่อตั้งค่า useDomainAdminAccess เป็น true ด้วยเท่านั้น
|
เนื้อหาของคำขอ
เนื้อหาของคำขอต้องว่างเปล่า
เนื้อหาการตอบกลับ
หากสำเร็จ เนื้อหาการตอบกลับจะว่างเปล่า
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต OAuth ต่อไปนี้
https://www.googleapis.com/auth/drive
ขอบเขตบางอย่างถูกจำกัดและต้องมีการประเมินความปลอดภัยเพื่อให้แอปใช้งานได้ โปรดดูข้อมูลเพิ่มเติมที่คู่มือการให้สิทธิ์
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-09-04 UTC
[null,null,["อัปเดตล่าสุด 2024-09-04 UTC"],[[["Permanently deletes an empty shared drive for which the user is an organizer."],["Requires the `driveId` as a path parameter to identify the shared drive."],["Allows domain administrators to delete the shared drive and its contents using query parameters `useDomainAdminAccess` and `allowItemDeletion`."],["Uses a DELETE request with an empty body and returns an empty response upon success."],["Needs authorization with the `https://www.googleapis.com/auth/drive` scope."]]],["This document outlines the process for permanently deleting a shared drive using a `DELETE` HTTP request. The request requires the shared drive's `driveId` as a path parameter. Optional query parameters, `useDomainAdminAccess` and `allowItemDeletion`, enable domain administrator access and the deletion of items within the drive, respectively. The request body must be empty. A successful deletion results in an empty response body. Authorization requires the `https://www.googleapis.com/auth/drive` OAuth scope.\n"]]