Create delete message function.