del file will first check whether it exists