R/datasets.R
db_dataset_delete.RdThis function cannot be used in batch mode as it needs user interaction. It asks the user to manually input confirmation to prevent unintentional deletion of datasets.
db_dataset_delete(con, set_name, schema = "timeseries")RPostgres connection object.
character name of a dataset.
character name of the database schema. Defaults to 'timeseries'
character name of the deleted set, NA in case of an error.
Other datasets functions:
db_dataset_create(),
db_dataset_get_keys(),
db_dataset_get_last_update(),
db_dataset_list(),
db_dataset_trim_history(),
db_dataset_update_metadata(),
db_ts_assign_dataset(),
db_ts_get_dataset()
if (FALSE) {
db_dataset_create(
con = connection,
set_name = "zrh_airport_data",
set_description = "Zurich airport arrivals and departures ",
schema = "schema"
)
db_dataset_delete(
con = connection,
set_name = "zrh_airport_data",
schema = "schema"
)
}