db_dataset_delete: Irrevocably Delete All Time Series in a Set and the Set...

View source: R/datasets.R

db_dataset_deleteR Documentation

Irrevocably Delete All Time Series in a Set and the Set Itself

Description

This 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.

Usage

db_dataset_delete(con, set_name, schema = "timeseries")

Arguments

con

RPostgres connection object.

set_name

character name of a dataset.

schema

character name of the database schema. Defaults to 'timeseries'

Value

character name of the deleted set, NA in case of an error.

See Also

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()

Examples


## Not run: 

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"
)

## End(Not run)

timeseriesdb documentation built on March 24, 2022, 1:06 a.m.