Delete records from a REDCap project
Arguments
- conn
A REDCap API connection object (created with
rconn
)- records
Character vector of record IDs to delete
Examples
if (FALSE) { # \dontrun{
conn <- rconn(
url = "https://redcap.msf.fr/api/",
token = Sys.getenv("MY_REDCAP_TOKEN")
)
# delete all records associated with IDs "P004" and "P007"
delete_records(conn, records = c("P004", "P007"))
} # }