deleteRecords {redcapAPI} | R Documentation |
Delete Records from a Project
Description
These methods enable the user to delete records from a project.
Usage
deleteRecords(
rcon,
records,
arm = NULL,
instrument = NULL,
event = NULL,
repeat_instance = NULL,
delete_logging = FALSE,
...
)
## S3 method for class 'redcapApiConnection'
deleteRecords(
rcon,
records,
arm = NULL,
instrument = NULL,
event = NULL,
repeat_instance = NULL,
delete_logging = FALSE,
...,
error_handling = getOption("redcap_error_handling"),
config = list(),
api_param = list()
)
Arguments
rcon |
A |
records |
|
arm |
|
instrument |
|
event |
|
repeat_instance |
|
delete_logging |
|
... |
Arguments to pass to other methods |
error_handling |
|
config |
A named |
api_param |
A named |
Value
deleteRecords
invisibly returns a character value giving the number of records deleted.
See Also
exportRecords()
,
importRecords()
,
exportRecordsTyped()
Examples
## Not run:
unlockREDCap(connections = c(rcon = "project_alias"),
url = "your_redcap_url",
keyring = "API_KEYs",
envir = globalenv())
# Delete records
deleteRecords(rcon,
records = c("1", "2"))
## End(Not run)