Method: drives.delete
يؤدي هذا الإجراء إلى حذف مساحة التخزين السحابي المشتركة التي يمتلك المستخدم organizer
فيها بشكل نهائي. لا يمكن أن تحتوي مساحة التخزين السحابي المشتركة على أي عناصر لم يتم نقلها إلى المهملات.
طلب HTTP
DELETE https://www.googleapis.com/drive/v3/drives/{driveId}
يستخدِم عنوان URL بنية تحويل ترميز gRPC.
مَعلمات المسار
المَعلمات |
driveId |
string
رقم تعريف مساحة التخزين السحابي المشتركة
|
معلمات طلب البحث
المَعلمات |
useDomainAdminAccess |
boolean
أصدر الطلب كمشرف نطاق. في حال ضبط السياسة على "صحيح"، سيتم منح مقدِّم الطلب إذن الوصول إذا كان مشرفًا للنطاق الذي تنتمي إليه مساحة التخزين السحابي المشتركة.
|
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 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2024-09-04 (حسب التوقيت العالمي المتفَّق عليه)"],[[["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"]]