Function deleteMessage

Remove a message from the cache