Skip to contents

Removes all records associated with a specific survey ID from all relevant tables in the survey database. This function requires an active DBI connection and the survey ID to target.

Usage

db_drop_survey(con, survey_id)

Arguments

con

A DBI connection to the database, which can be established using rds_connect_to_database().

survey_id

The unique identifier of the survey to be dropped, specified as a string.

Examples

if (FALSE) { # \dontrun{
# Establish a connection to the database
con <- rds_connect_to_database(
  database = rds_get_database("my-database-id"),
  secret = secretManager_get_secret("my-secret")
)

# Drop a specific survey from the database
db_drop_survey(con, "some_survey_id")
} # }