Condividi tramite


FileOperationsExtensions.DeleteFromTask Method

Definition

Deletes the specified Task file from the Compute Node where the Task ran.

public static Microsoft.Azure.Batch.Protocol.Models.FileDeleteFromTaskHeaders DeleteFromTask (this Microsoft.Azure.Batch.Protocol.IFileOperations operations, string jobId, string taskId, string filePath, bool? recursive = default, Microsoft.Azure.Batch.Protocol.Models.FileDeleteFromTaskOptions fileDeleteFromTaskOptions = default);
static member DeleteFromTask : Microsoft.Azure.Batch.Protocol.IFileOperations * string * string * string * Nullable<bool> * Microsoft.Azure.Batch.Protocol.Models.FileDeleteFromTaskOptions -> Microsoft.Azure.Batch.Protocol.Models.FileDeleteFromTaskHeaders
<Extension()>
Public Function DeleteFromTask (operations As IFileOperations, jobId As String, taskId As String, filePath As String, Optional recursive As Nullable(Of Boolean) = Nothing, Optional fileDeleteFromTaskOptions As FileDeleteFromTaskOptions = Nothing) As FileDeleteFromTaskHeaders

Parameters

operations
IFileOperations

The operations group for this extension method.

jobId
String

The ID of the Job that contains the Task.

taskId
String

The ID of the Task whose file you want to delete.

filePath
String

The path to the Task file or directory that you want to delete.

recursive
Nullable<Boolean>

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.

fileDeleteFromTaskOptions
FileDeleteFromTaskOptions

Additional parameters for the operation

Returns

Applies to