delete useless messages in index