Implemented the delete command