redcap delete file - part-cw/lambdanative GitHub Wiki
(redcap-delete-file host token record field . xargs)
redcap-delete-file
deletes a file from a REDCap project record in a file field.
Parameter | Description |
---|---|
host | Server hostname |
token | Authentication token (project and user specific!) |
record | Primary id of record |
field | Field variable name which has the file to be deleted |
xargs | Optional parameters: see below |
Optional parameters must come in pairs of 'symbol "string"
.
Optional Parameter | Description |
---|---|
'event "[event]" | Deletes from the record with the given event in longitudinal projects. |
Examples
Example 1: Delete a file under the field file2
in the event_a_arm_1
event in study 1 in a longitudinal project.
> (define redcap:token "54CC....CC10")
> (define redcap:hostname "redcap.INSTITUTIONNAME.ca")
> (redcap-delete-file redcap:hostname redcap:token "1" "file2" 'event "event_a_arm_1")