check file exist before deletion