View source: R/delete_records.R
| delete_records | R Documentation | 
Delete records from a REDCap project
delete_records(conn, records)
conn | 
 A REDCap API connection object (created with   | 
records | 
 Character vector of record IDs to delete  | 
An integer, the number of records successfully deleted
## Not run: 
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"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.