Method: drives.delete
Menghapus drive bersama yang penggunanya adalah organizer
secara permanen. Drive bersama tidak boleh berisi item yang tidak dibuang.
Permintaan HTTP
DELETE https://www.googleapis.com/drive/v3/drives/{driveId}
URL menggunakan sintaksis gRPC Transcoding.
Parameter jalur
Parameter |
driveId |
string
ID drive bersama.
|
Parameter kueri
Parameter |
useDomainAdminAccess |
boolean
Berikan permintaan sebagai administrator domain. Jika disetel ke benar (true), pemohon akan diberi akses jika ia adalah administrator domain tempat drive bersama berada.
|
allowItemDeletion |
boolean
Apakah semua item di dalam drive bersama juga akan dihapus. Opsi ini hanya didukung jika useDomainAdminAccess juga disetel ke true .
|
Isi permintaan
Isi permintaan harus kosong.
Isi respons
Jika berhasil, isi respons akan kosong.
Cakupan otorisasi
Memerlukan cakupan OAuth berikut ini:
https://www.googleapis.com/auth/drive
Beberapa cakupan dibatasi dan memerlukan penilaian keamanan agar aplikasi Anda dapat menggunakannya. Untuk informasi selengkapnya, lihat Panduan otorisasi.
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2024-09-04 UTC.
[null,null,["Terakhir diperbarui pada 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"]]