delete task indexes in hdfs before write