Skip to contents

Delete a collection from the collection table of the database

Usage

deleteCollection(conn_handler = NULL, collection_id, verbose = TRUE)

Arguments

conn_handler

An R object obtained from SigRepo::newConnhandler() (required)

collection_id

Database ID of the collection to be removed(required)

verbose

Logical; whether to print diagnostic messages. Defaults to 'TRUE'

Examples


if (FALSE) { # \dontrun{

# Create a connection handler
conn_handler <- SigRepo::newConnHandler(
  dbname = "sigrepo", 
  host = "sigrepo.org", 
  port = 3306, 
  user = "your_username", 
  password = "your_password"
)

# Delete collection from database
SigRepo::deleteCollection(
  conn_handler = conn_handler,
  collection_id = 56,
  verbose = TRUE
)

} # }