[[["เข้าใจง่าย","easyToUnderstand","thumb-up"],["แก้ปัญหาของฉันได้","solvedMyProblem","thumb-up"],["อื่นๆ","otherUp","thumb-up"]],[["ไม่มีข้อมูลที่ฉันต้องการ","missingTheInformationINeed","thumb-down"],["ซับซ้อนเกินไป/มีหลายขั้นตอนมากเกินไป","tooComplicatedTooManySteps","thumb-down"],["ล้าสมัย","outOfDate","thumb-down"],["ปัญหาเกี่ยวกับการแปล","translationIssue","thumb-down"],["ตัวอย่าง/ปัญหาเกี่ยวกับโค้ด","samplesCodeIssue","thumb-down"],["อื่นๆ","otherDown","thumb-down"]],["อัปเดตล่าสุด 2024-09-03 UTC"],[[["Permanently moves a file to the trash, requiring the user to own the file or have sufficient permissions."],["Uses an HTTP POST request with the file ID as a path parameter to specify the target file."],["Allows optional query parameters to control behavior regarding shared drives, permissions, and labels."],["Requires authorization with specific OAuth scopes, including `https://www.googleapis.com/auth/drive` or similar, for access."],["Returns a File resource describing the trashed file upon successful completion."]]],["This content describes how to move a file to the trash using the Google Drive API. The process involves sending a `POST` request to `https://www.googleapis.com/drive/v2/files/{fileId}/trash`, where `fileId` is the file's ID. The request body must be empty, and optional query parameters like `supportsAllDrives` or `includeLabels` can be added. Successful requests return a `File` instance in the response. Authorization requires specific OAuth scopes, such as `https://www.googleapis.com/auth/drive`. The user must own the file.\n"]]