Sha256: 13a8195dba81af934378d4dbd66dfe07296168d261b94133d98fe29f61a6f27c

Contents?: true

Size: 791 Bytes

Versions: 2

Compression:

Stored size: 791 Bytes

Contents

module DropboxApi::Endpoints::Files
  class DeleteBatch < DropboxApi::Endpoints::Rpc
    Method      = :post
    Path        = "/2/files/delete_batch".freeze
    ResultType  = DropboxApi::Results::DeleteBatchResult

    # 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.
    #
    # @param entries [Array] List of entries, each entry is a Hash with these
    #   fields: `path` (mandatory) & parent_rev (optional).
    # @return [String, Array] Either the job id or the list of job statuses.
    add_endpoint :delete_batch do |entries|
      perform_request({
        :entries => entries
      })
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dropbox_api-0.1.18 lib/dropbox_api/endpoints/files/delete_batch.rb
dropbox_api-0.1.17 lib/dropbox_api/endpoints/files/delete_batch.rb