Method: drives.delete
מוחקת לצמיתות את האחסון השיתופי שהמשתמש הוא organizer
. האחסון השיתופי לא יכול להכיל פריטים שאינם באשפה.
בקשת HTTP
DELETE https://www.googleapis.com/drive/v2/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."],["Allows domain administrators to delete the shared drive and its contents using query parameters `useDomainAdminAccess` and `allowItemDeletion`."],["Uses a DELETE request with an empty body and returns an empty response upon success."],["Needs authorization with the `https://www.googleapis.com/auth/drive` scope."]]],["This document outlines the process for 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 deletion results in an empty response body. Authorization requires the `https://www.googleapis.com/auth/drive` OAuth scope.\n"]]