Learn R Programming

restez (version 1.0.0)

db_delete: Delete database

Description

Delete the local SQL database and/or restez folder.

Usage

db_delete(everything = FALSE)

Arguments

everything

T/F, delete the whole restez folder as well?

Details

Any connected database will be automatically disconnected.

See Also

Other database: count_db_ids, db_create, db_download, demo_db_create, is_in_db, list_db_ids

Examples

Run this code
# NOT RUN {
library(restez)
fp <- tempdir()
restez_path_set(filepath = fp)
demo_db_create(n = 10)
db_delete(everything = FALSE)
# Will not run: gb_sequence_get(id = 'demo_1')
# only the SQL database is deleted
db_delete(everything = TRUE)
# Now returns NULL
(restez_path_get())
# }

Run the code above in your browser using DataLab