Method: files.emptyTrash
Menghapus semua file pengguna yang dibuang ke sampah secara permanen.
Permintaan HTTP
DELETE https://www.googleapis.com/drive/v3/files/trash
URL menggunakan sintaksis gRPC Transcoding.
Parameter kueri
Parameter |
enforceSingleParent (deprecated) |
boolean
Tidak digunakan lagi: Jika item tidak ada di drive bersama dan induk terakhirnya dihapus, tetapi item itu sendiri tidak ada, item tersebut akan ditempatkan di bawah root pemiliknya.
|
driveId |
string
Jika disetel, folder sampah drive bersama yang disediakan akan dikosongkan.
|
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 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"]]