$darkmode
Elektra 0.11.0
|
kdb rm <path>
Where path
is the path of the key(s) you want to remove. Note that when using the -r
flag, not only the key directly at path
will be removed, but all of the keys below the path as well.
This command removes key(s) from the Key database.
This command will return the following values as an exit status:
-H
, --help
: Show the man page.-V
, --version
: Print version info.-p
, --profile <profile>
: Use a different kdb profile.-C
, --color <when>
: Print never/auto(default)/always colored output.-r
, --recursive
: Work in a recursive mode.-E
, --without-elektra
: Omit the system:/elektra
directory.-f
, --force
: Do not fail on missing key, nor print if there was a key (-v to still print).-v
, --verbose
: Explain what is happening. Prints additional information in case of errors/warnings.-d
, --debug
: Give debug information. Prints additional debug information in case of errors/warnings.To remove a single key:
kdb rm user:/example/key1
To remove multiple keys:
kdb rm -r user:/example
To remove all keys in system
except system:/elektra
:
sudo kdb rm -rE system
To not fail when key is missing:
kdb rm -f user:/maybe/missing