dvDeleteFile: Delete a study file
Description
Use Data Deposit API to delete a study file.Usage
dvDeleteFile( fileid, dv=getOption('dvn'), user=getOption('dvn.user'), pwd=getOption('dvn.pwd'), browser=FALSE, ...)
Arguments
fileid
A character string specifying a dataverse fileId for a file contained in a dataverse record. This is distinct from the objectid
that identifies the entire study in which the file is located. This could be returned from dvCreateStudy
, dvStudyStatement
, (or, dvExtractFileIds
, from the Data Sharing API). dv
An optional character string specifying the Dataverse to query. Default is the Harvard IQSS Dataverse.
user
A character string containing a dataverse username. Default is options('dvn.user')
.
pwd
A character string containing the corresponding dataverse password. Default is options('dvn.pwd')
.
browser
A logical specifying whether the query should be executed in a web browser. Default is FALSE
.
...
Optionally, additional arguments passed to curlPerform
via dvDepositQuery
. Details
This deletes a file in a study.