Implemented the deletion of a message