dropbox_delete: Function to delete a file or folder from Dropbox

Description Usage Arguments Value Examples

Description

Function will delete specified object in Dropbox (assuming it exists). To skip deletion conformation, set ask = FALSE in function call. Accidentally deleted objects may be recovered using Dropbox's restore feature.

Usage

1
2
  dropbox_delete(cred, file_to_delete = NULL,
    ask = interactive(), curl = getCurlHandle(), ...)

Arguments

cred

An object of class DropboxCredentials with Dropobox specific credentials.

file_to_delete

Specifies the path to the file or folder to be deleted.

curl

If using in a loop, call getCurlHandle() first and pass the returned value in here (avoids unnecessary footprint)

...

optional additional curl options (debugging tools mostly).

ask

logical set to TRUE. If set to false, function will not confirm delete operation

Value

Nothing. A message upon successful deletion.

Examples

1
2
3
4
## Not run: 
dropbox_delete(dropbox_credential, 'path/to/file')

## End(Not run)

karthik/rDrop documentation built on May 20, 2019, 7:22 a.m.