rm tmp file for idx