Method: files.emptyTrash
כל הקבצים של המשתמש שהועברו לאשפה יימחקו באופן סופי.
בקשת HTTP
DELETE https://www.googleapis.com/drive/v3/files/trash
בכתובת ה-URL נעשה שימוש בתחביר המרת gRPC.
פרמטרים של שאילתה
פרמטרים |
enforceSingleParent (deprecated) |
boolean
הוצא משימוש: אם פריט לא נמצא באחסון שיתופי ומוחק את הפריט ההורה האחרון שלו, אבל הפריט עצמו לא נמצא, הפריט ישויך לרמה הבסיסית (root) של הבעלים.
|
driveId |
string
אם המדיניות מוגדרת, היא מרוקנת את האשפה של האחסון השיתופי שסופק.
|
גוף הבקשה
גוף הבקשה חייב להיות ריק.
גוף התגובה
אם הביצוע יהיה תקין, גוף התגובה יהיה ריק.
היקפי הרשאות
נדרש היקף OAuth הבא:
https://www.googleapis.com/auth/drive
חלק מההיקפים מוגבלים ומחייבים בדיקת אבטחה כדי שהאפליקציה תוכל להשתמש בהם. למידע נוסף, ניתן לעיין במדריך ההרשאות.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-09-04 (שעון UTC).
[null,null,["עדכון אחרון: 2024-09-04 (שעון UTC)."],[[["Permanently deletes all of the user's trashed files or those within a specified shared drive."],["Uses an HTTP DELETE request to the URL `https://www.googleapis.com/drive/v3/files/trash`."],["Request body should be empty, and a successful response will also be empty."],["Requires authorization with the `https://www.googleapis.com/auth/drive` scope."]]],["This document outlines the process for permanently deleting a user's trashed files via an HTTP `DELETE` request to `https://www.googleapis.com/drive/v3/files/trash`. The request body must be empty. Optional query parameters include `driveId` to specify a shared drive. A successful request yields an empty response. Authorization requires the `https://www.googleapis.com/auth/drive` OAuth scope. The parameter `enforceSingleParent` has been deprecated.\n"]]