R/remove.R

Defines functions yotov_db_delete

Documented in yotov_db_delete

#' Remove the local Yotov database
#'
#' Deletes all tables from the local database.
#'
#' @return NULL
#' @export
#' @importFrom DBI dbListTables dbRemoveTable
#'
#' @examples
#' \donttest{
#' \dontrun{
#' yotov_db_delete()
#' }
#' }
yotov_db_delete <- function() {
  yotov_db_disconnect()
  try(unlink(yotov_path(), recursive = TRUE))
  try(unlink(paste0(rappdirs::user_data_dir(), "/yotover"), recursive = TRUE))
  update_yotov_pane()
}

Try the yotover package in your browser

Any scripts or data that you put into this service are public.

yotover documentation built on Jan. 28, 2021, 9:06 a.m.