Skip to contents

Deletes specified cohorts from a cohort table in a database.

Usage

CohortGenerator_deleteCohortFromCohortTable(
  connectionDetails = NULL,
  connection = NULL,
  cohortDatabaseSchema,
  cohortTableNames,
  cohortIds,
  incrementalFolder = NULL
)

Arguments

connectionDetails

A list of database connection details (optional).

connection

A pre-established database connection (optional).

cohortDatabaseSchema

The schema name of the cohort database.

cohortTableNames

A list containing the name of the cohort table.

cohortIds

Numeric vector of cohort IDs to be deleted.

incrementalFolder

The folder where the incremental file is stored (optional).

Value

TRUE if the deletion was successful; otherwise, an error is raised.