destroy message programmatically