fix #32, imporve error message for command delete