You are here

public function BackupMigrateDropboxAPI::file_delete in Backup and Migrate Dropbox 7.3

Same name and namespace in other branches
  1. 7.2 backup_migrate_dropbox.dropbox_api.inc \BackupMigrateDropboxAPI::file_delete()

Deletes the file at the given $path.

@link https://www.dropbox.com/developers/documentation/http/documentation#file... Dropbox API /delete

Parameters

string $path:

Return value

object The json decoded response.

Throws

RuntimeException

File

./backup_migrate_dropbox.dropbox_api.inc, line 506

Class

BackupMigrateDropboxAPI
BackupMigrateDropboxAPI contains all the details about the Dropbox api, authorization calls, endpoints, uris, parameters, error handling, and split requests for large uploads/downloads

Code

public function file_delete($path) {
  $parameters = [
    'path' => $path,
  ];
  return $this
    ->send_message('api', 'files/delete_v2', $parameters);
}