Skip to content
Dustin edited this page Jan 22, 2016 · 6 revisions

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: Additional parameters, such as 'event or 'form can be specified here

Example

Example 1: Delete a file from a field called "file2" in record "1".

> ;;Testing Delete File function
> (define redcap:token "54CC....CC10")
> (define redcap:hostname "redcap.INSTITUTIONNAME.ca")
> (redcap-delete-file redcap:hostname redcap:token "1" "file2")

Clone this wiki locally