CLI command ‘database deltree’ doesn’t remove family with space in its name

Home » Asterisk Users » CLI command ‘database deltree’ doesn’t remove family with space in its name
Asterisk Users 1 Comment

While playing with DB function in Dialplan, I have added some garbage in
AstDB. These are some family names with space in them.
See this,
demo*CLI> database show
/18-05-2011 00:00:0052011175221575/TESTDATE : 2011-05-14 21:33:46
/18-05-2011 00:00:0052011175221575/TEST1 : 410
/18-05-2011 00:00:0052011175221575/TEST2 : 155
/18-05-2011 00:00:0052011182614252/TEST3 : 157

I treid to remove it from CLI through database deltree and database del
commands, but no hope.

demo*CLI> database deltree 18-05-2011 00:00:0052011175221575
0 database entries removed.
demo*CLI> database deltree 18-05-2011 00:00:0052011175221575 TESTDATE
0 database entries removed.
demo*CLI> database del 18-05-2011 00:00:0052011175221575 TESTDATE
0 database entries removed.

Some more variations…

demo*CLI> database deltree ’18-05-2011 00:00:0052011175221575′
0 database entries removed.
demo*CLI> database deltree `18-05-2011 00:00:0052011175221575`
0 database entries removed.

Any suggestions to remove them?

Thanking you,
[SATISH]

One thought on - CLI command ‘database deltree’ doesn’t remove family with space in its name

  • Hi Satish

    Try to do something like this way

    CLI> database deltree “18-05-2011 00:00:0052011175221575” TESTDATE

    I have done like this way hope it works for you.