Implemented delete functionality