Cleans up concept set manifest data at one of two scopes. All destructive
operations require the user to type "yes" at a confirmation prompt
(disable with confirm = FALSE for scripted use).
Arguments
- manifest
A
ConceptSetManifestR6 object. Optional; when provided the folder path is inferred automatically.- conceptSetsFolderPath
Character. Path to the conceptSets folder. Inferred from
manifestwhen provided; otherwise defaults tohere::here("inputs/conceptSets").- scope
Character. One of
"manifest"(default) or"full".- archive
Logical. For
scope = "manifest", ifTRUE(default), archives JSON files injson/to a timestamped directory instead of deleting them. Set toFALSEto delete without archiving.- confirm
Logical. If
TRUE(default), the user must type"yes"to proceed. Set toFALSEfor non-interactive use.
Details
Unlike cohort manifests, all concept set JSON files are user-owned sources (nothing is auto-generated), so there is no "derived" tier.
Scope options
"manifest"(default)Deletes only the SQLite database. JSON files in
json/are archived to a timestamped directory (unlessarchive = FALSE) and can be restored afterinitConceptSetManifest()using$addConceptSetFile()."full"Deletes the SQLite database, the
json/folder, andconceptSetsLoad.csv. Complete wipe.