This function allows you to remove a document that has been attached to an individual record
deleteFiles(rcon, record, field, event, ...)# S3 method for redcapDbConnection
deleteFiles(rcon, record, field, event, ...)
# S3 method for redcapApiConnection
deleteFiles(
rcon,
record = NULL,
field = NULL,
event = NULL,
...,
bundle = getOption("redcap_bundle"),
error_handling = getOption("redcap_error_handling")
)
A REDCap connection object as generated by redcapConnection
The record ID in which the desired file is stored. Must be length 1.
The field name in which the file is stored. Must be length 1.
The event name for the file. Must be length 1. This applies only to longitudinal projects. If the event is not supplied for a longitudinal project, the API will return an error message.
Arguments to be passed to other methods
A redcapBundle
object as created by exportBundle
.
An option for how to handle errors returned by the API.
see redcap_error
Benjamin Nutter
Please refer to your institution's API documentation.
Additional details on API parameters are found on the package wiki at https://github.com/nutterb/redcapAPI/wiki/REDCap-API-Parameters