delete the local NEON database

neon_delete_db(db_dir = neon_db_dir(), ask = interactive())

Arguments

db_dir

neon database location (configurable with the NEONSTORE_DB environmental variable)

ask

Ask for confirmation first?

Details

Just a helper function that deletes the NEON database files, which are found under file.path(neon_dir(), "database"). This does not delete downloaded raw data, which can easily be re-loaded with neon_store(). Usually unnecessary but can be helpful in resetting a corrupt database.

If you want to delete all raw data files downloaded by neonstore as well, simply delete the entire directory given by neon_dir()

Examples


# Create a db
dir <- tempfile()
db <- neon_db(dir)
#> initializing database

# Delete it
neon_delete_db(dir, ask = FALSE)