Destroy all or part of the data store written
tar_make() and similar functions.
destroy = c("all", "meta", "process", "progress", "objects", "scratch", "workspaces"),
ask = NULL,
store = targets::tar_config_get("store")
Character of length 1, what to destroy. Choices:
"all": destroy the entire data store (default:
"meta": just delete the metadata file at
meta/meta in the
data store, which invalidates all the targets but keeps the data.
"process": just delete the progress data file at
meta/process in the data store, which resets the metadata
of the main process.
"progress": just delete the progress data file at
meta/progress in the data store,
which resets the progress tracking info.
"objects": delete all the target
return values in
objects/ in the data
store but keep progress and metadata.
Dynamic files are not deleted this way.
"scratch": temporary files saved during
tar_make() that should
automatically get deleted except if R crashed.
"workspaces": compressed files in
workspaces/ in the data store with
the saved workspaces of targets. See
tar_workspace() for details.
Logical of length 1, whether to pause with a menu prompt
before deleting files. To disable this menu, set the
environment variable to
can help set environment variables.
Character of length 1, path to the
targets data store. Defaults to
which in turn defaults to
When you set this argument, the value of
is temporarily changed for the current function call.
tar_config_set() for details
about how to set the data store path persistently
for a project.