Method: drives.delete
מוחקת לצמיתות את האחסון השיתופי שהמשתמש הוא organizer
. האחסון השיתופי לא יכול להכיל פריטים שאינם באשפה.
בקשת HTTP
DELETE https://www.googleapis.com/drive/v3/drives/{driveId}
בכתובת ה-URL נעשה שימוש בתחביר המרת gRPC.
פרמטרים של נתיב
פרמטרים |
driveId |
string
המזהה של האחסון השיתופי.
|
פרמטרים של שאילתה
פרמטרים |
useDomainAdminAccess |
boolean
שולחים את הבקשה כאדמין של דומיין. אם המדיניות מוגדרת כ-True, למגיש הבקשה תוענק גישה אם יש לו הרשאת אדמין בדומיין שאליו האחסון השיתופי שייך.
|
allowItemDeletion |
boolean
אם צריך למחוק גם פריטים באחסון השיתופי. האפשרות הזו נתמכת רק אם הערך בשדה useDomainAdminAccess גם מוגדר ל-true .
|
גוף הבקשה
גוף הבקשה חייב להיות ריק.
גוף התגובה
אם הביצוע יהיה תקין, גוף התגובה יהיה ריק.
היקפי הרשאות
נדרש היקף 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 an empty shared drive for which the user is an organizer."],["Requires the `driveId` as a path parameter to identify the shared drive to be deleted."],["Allows domain administrators to delete the shared drive along with its contents using query parameters `useDomainAdminAccess` and `allowItemDeletion`."],["The request body should be empty, and a successful deletion results in an empty response body."],["Utilizes the `https://www.googleapis.com/auth/drive` OAuth scope for authorization."]]],["This document details the process of 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 response also yields an empty body. The user must be an organizer of the drive. `https://www.googleapis.com/auth/drive` scope is necessary.\n"]]