Skip to contents

Runs datum delete for one or more configured datasets. The command removes their tracked local files and marks the datasets deleted in the lockfile; it does not modify .data.yaml. By default an interactive R session asks for confirmation. Set yes = TRUE for non-interactive use.

Usage

datum_delete(
  ids,
  config = NULL,
  lock = NULL,
  yes = FALSE,
  executable = NULL,
  wd = NULL,
  timeout = getOption("datur.timeout", 300)
)

Arguments

ids

Character vector of dataset identifiers.

config

Optional datum configuration path.

lock

Optional datum lockfile path.

yes

Skip the R confirmation prompt. Required in non-interactive use.

executable

Optional explicit executable path.

wd

Optional child-process working directory.

timeout

Positive finite timeout in seconds.

Value

Invisibly, a datur_process_result, or NULL if the user declines.

Examples

if (FALSE) { # \dontrun{
datum_delete("large_extract")
datum_delete(c("one", "two"), yes = TRUE)
} # }