Method DeleteFile DeleteFile(string) Utility method for deleting files. Declaration protected static void DeleteFile(string path) Parameters Type Name Description string path The file path to delete.