Deletes all or some of the data content of a storethat SQLite database.

db_delete(file = NULL, instrument = "all", book = "all", name = "all")

Arguments

file

a scalar character vector. Specifies the path to the appropriate 'storethat.sqlite' file.

instrument

a scalar character vector. Specifies the financial instruments to get a snapshot for. Must be one of 'all', equity', 'index', 'fund' or 'futures'.

book

a scalar character vector. Instrument dependent; for a given instrument, specifies the book for the snapshot; 'all' deletes all data for a given instrument.

name

a scalar character vector. Instrument dependent; for a given instrument, specifies the name for the snapshot; 'all' deletes all data for a given instrument and book.

See also

The finRes suite, in particular the pullit & BBGsymbols packages.

Examples

if (FALSE) db_delete()