Class: DropboxApi::Endpoints::Files::DeleteBatch
- Defined in:
- lib/dropbox_api/endpoints/files/delete_batch.rb
Constant Summary collapse
- Method =
:post
- Path =
'/2/files/delete_batch'
- ResultType =
DropboxApi::Results::DeleteBatchResult
Instance Method Summary collapse
-
#delete_batch(entries) ⇒ String, Array
Delete multiple files/folders at once.
Methods inherited from Rpc
#build_connection, #build_request, #request_body
Methods inherited from Base
Constructor Details
This class inherits a constructor from DropboxApi::Endpoints::Base
Instance Method Details
#delete_batch(entries) ⇒ String, Array
Delete multiple files/folders at once.
This route is asynchronous, which returns a job ID immediately and runs the delete batch asynchronously. Use Client#delete_batch_check to check the job status.
17 18 19 20 21 |
# File 'lib/dropbox_api/endpoints/files/delete_batch.rb', line 17 add_endpoint :delete_batch do |entries| perform_request({ entries: entries }) end |