rm
Removes an item, asking first.
sefy rm <REFERENCE> [-y]| Option | Meaning |
|---|---|
-y, --yes |
Do not ask for confirmation. |
$ sefy rm "work key"remove "work key" (5)? [y/N] yremoved 5Answering anything but yes leaves the item alone and says so:
$ sefy rm "work key"remove "work key" (5)? [y/N] nkeptIn scripts
Section titled “In scripts”Without a terminal there is nobody to ask, so sefy refuses rather than assuming yes:
$ sefy rm "work key" < /dev/nullerror: cannot ask for confirmation: input is not a terminal; pass --yes--yes is then the deliberate way to say it:
$ sefy rm "work key" --yesremoved 5Removal is final
Section titled “Removal is final”There is no trash and no undo. The vault is rewritten without the item, under a fresh salt and nonce, so the previous contents are not recoverable from the new file.
A backup copy made earlier still holds the item — which is either your safety net or the thing to remember when you remove something on purpose.
Related
Section titled “Related”ls— check what you are about to remove- Moving a vault between machines — backups