Skip to content

rm

Removes an item, asking first.

Terminal window
sefy rm <REFERENCE> [-y]
Option Meaning
-y, --yes Do not ask for confirmation.
Terminal window
$ sefy rm "work key"
remove "work key" (5)? [y/N] y
removed 5

Answering anything but yes leaves the item alone and says so:

Terminal window
$ sefy rm "work key"
remove "work key" (5)? [y/N] n
kept

Without a terminal there is nobody to ask, so sefy refuses rather than assuming yes:

Terminal window
$ sefy rm "work key" < /dev/null
error: cannot ask for confirmation: input is not a terminal; pass --yes

--yes is then the deliberate way to say it:

Terminal window
$ sefy rm "work key" --yes
removed 5

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.