Implemented message delete functionality