I expect they assume developer will write delete file code like this
public void DeleteFile(string filePath)
{
if(File.Exists(filePath))
File.Delete(filePath);
else
MessageBox.Show("File not exists, deleting file not performed");
//or throw an error message in their face
}