check file exist before delete