/// <summary> /// Deletes the specified file from the Compute Node. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='poolId'> /// The ID of the Pool that contains the Compute Node. /// </param> /// <param name='nodeId'> /// The ID of the Compute Node from which you want to delete the file. /// </param> /// <param name='filePath'> /// The path to the file or directory that you want to delete. /// </param> /// <param name='recursive'> /// Whether to delete children of a directory. If the filePath parameter /// represents a directory instead of a file, you can set recursive to true to /// delete the directory and all of the files and subdirectories in it. If /// recursive is false then the directory must be empty or deletion will fail. /// </param> /// <param name='fileDeleteFromComputeNodeOptions'> /// Additional parameters for the operation /// </param> public static FileDeleteFromComputeNodeHeaders DeleteFromComputeNode(this IFileOperations operations, string poolId, string nodeId, string filePath, bool?recursive = default(bool?), FileDeleteFromComputeNodeOptions fileDeleteFromComputeNodeOptions = default(FileDeleteFromComputeNodeOptions)) { return(operations.DeleteFromComputeNodeAsync(poolId, nodeId, filePath, recursive, fileDeleteFromComputeNodeOptions).GetAwaiter().GetResult()); }