Added deleteMessage method