Method: parents.delete
คำขอ HTTP
DELETE https://www.googleapis.com/drive/v2/files/{fileId}/parents/{parentId}
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
fileId |
string
รหัสของไฟล์
|
parentId |
string
รหัสของเครือข่ายหลัก
|
พารามิเตอร์การค้นหา
พารามิเตอร์ |
enforceSingleParent (deprecated) |
boolean
เลิกใช้งานแล้ว: หากรายการไม่ได้อยู่ในไดรฟ์ที่แชร์และมีการนำรายการหลักล่าสุดออก รายการดังกล่าวจะอยู่ใต้รูทของเจ้าของ
|
เนื้อหาของคำขอ
เนื้อหาของคำขอต้องว่างเปล่า
เนื้อหาการตอบกลับ
หากสำเร็จ เนื้อหาการตอบกลับจะว่างเปล่า
ขอบเขตการให้สิทธิ์
ต้องมีขอบเขต OAuth อย่างใดอย่างหนึ่งต่อไปนี้
https://www.googleapis.com/auth/docs
https://www.googleapis.com/auth/drive
https://www.googleapis.com/auth/drive.file
ขอบเขตบางอย่างถูกจำกัดและต้องมีการประเมินความปลอดภัยเพื่อให้แอปใช้งานได้ โปรดดูข้อมูลเพิ่มเติมที่คู่มือการให้สิทธิ์
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-09-03 UTC
[null,null,["อัปเดตล่าสุด 2024-09-03 UTC"],[[["This document outlines the process for removing a parent from a Google Drive file using the `DELETE` HTTP request method and specific path parameters."],["Required path parameters are `fileId` for the target file and `parentId` to specify the parent being removed."],["The request body should be empty, and a successful operation results in an empty response body."],["Authorization is necessary using one of the listed OAuth scopes, including `https://www.googleapis.com/auth/docs`, `https://www.googleapis.com/auth/drive`, or `https://www.googleapis.com/auth/drive.file`."]]],["This document outlines the process to remove a parent from a file using a `DELETE` HTTP request. The request requires two path parameters: `fileId` (the file's ID) and `parentId` (the parent's ID). It may include a deprecated query parameter `enforceSingleParent`. The request body must be empty and the successful response body is also empty. Authorization requires specific OAuth scopes: `docs`, `drive`, or `drive.file`.\n"]]