Method: comments.delete
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-09-04 (世界標準時間)。
[null,null,["上次更新時間:2024-09-04 (世界標準時間)。"],[[["Deletes a specific comment from a file using the comment and file IDs."],["Requires an empty request body and returns an empty response body upon successful deletion."],["Needs authorization with specific scopes, such as `https://www.googleapis.com/auth/drive`, `https://www.googleapis.com/auth/drive.file`, or `https://www.googleapis.com/auth/docs`."],["Utilizes an HTTP DELETE request to `https://www.googleapis.com/drive/v2/files/{fileId}/comments/{commentId}` with the file and comment IDs as path parameters."]]],["This document outlines the process for deleting a comment using an HTTP DELETE request. The request URL is structured with `fileId` and `commentId` as path parameters. The request body must be empty. A successful deletion results in an empty response body. Authorization requires one of three specified OAuth scopes, some of which are restricted. The full request path is `https://www.googleapis.com/drive/v2/files/{fileId}/comments/{commentId}`.\n"]]