It's unfortunate that error codes are not included with management commands.
For example, if you tape " kamctl diaplan rm rule 2 999 " instead of " kamctl diaplan rmrule 2 999 " then all the entries in dialplan table will be deleted.
In fat the system perform "kamctl diaplan rm"
It's very annoying .
--
Laurent PIERRE