implemented delete command