saferm v0.8.1 /saferm delete
On this page

Reference for the saferm delete command — usage, flags, arguments, and examples for the delete subcommand of the saferm CLI.

#saferm delete

Move files to the saferm archive with metadata tracking

Effect: mutating

#Flags

Flags
NameShortTypeDefaultEnvDescription
--recursive-rboolAllow recursive deletion of directories and all their contents
--ignore-missing-fboolSilently skip files that do not exist instead of erroring
--interactive-iboolPrompt for confirmation before archiving each file
--descriptionstrMandatory explanation of why this deletion is happening
--commandstrRecord the original rm command being replaced by saferm
--metastrAttach additional metadata as key=value pairs (repeatable)
--update-git-indexboolTrueRun git rm --cached to stage removal in the git index

#Arguments

Arguments
NameRequiredDescription
filesyesOne or more files or directories to move into the archive

#Grants

Grants
KindNameReason
proc_mutategit-indexa tracked file that moved into the archive must leave the git index too, or the next commit resurrects it
Search