Elektra  0.9.4
kdb-rm(1) -- Remove key(s) from the key database

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:

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