I dont persay want to delete the entire table, rather just remove whatever items are in there.
Code:
alias test1 { echo -a $hget(badword,0).item }
alias test2 {
var %x = $hget(badword,0).item
while (%x >= 1) { hdel badword $hget(badword,%x).item | dec %x }
hsave badword $+($scriptdir,badword.hsh)
}
This seems to work for now.
Thanks
J