Task. Delete Temp File(String) Method
Deletes the specified temporary file.
protected: void DeleteTempFile(System::String ^ fileName);
protected void DeleteTempFile (string fileName);
member this.DeleteTempFile : string -> unit
Protected Sub DeleteTempFile (fileName As String)
The name of the temporary file to delete.
If the delete operation fails for any reason (such as if a file is locked by antivirus software), then this method logs a warning rather than throwing an exception, which would cause the build to fail.