added delete message feature to API