expose deleteMessage to socket api