deletes temp index