Files.deleteFromTaskAsync Method

Definition

Overloads

deleteFromTaskAsync(String jobId, String taskId, String filePath)

Deletes the specified task file from the compute node where the task ran.

deleteFromTaskAsync(String jobId, String taskId, String filePath, Boolean recursive, FileDeleteFromTaskOptions fileDeleteFromTaskOptions)

Deletes the specified task file from the compute node where the task ran.

deleteFromTaskAsync(String jobId, String taskId, String filePath, Boolean recursive, FileDeleteFromTaskOptions fileDeleteFromTaskOptions, final ServiceCallback<Void> serviceCallback)

Deletes the specified task file from the compute node where the task ran.

deleteFromTaskAsync(String jobId, String taskId, String filePath, final ServiceCallback<Void> serviceCallback)

Deletes the specified task file from the compute node where the task ran.

deleteFromTaskAsync(String jobId, String taskId, String filePath)

Deletes the specified task file from the compute node where the task ran.

public Observable<Void> deleteFromTaskAsync(String jobId, String taskId, String filePath)
Parameters
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.

Returns
Observable<Void>

the ServiceResponseWithHeaders object if successful.

Exceptions
IllegalArgumentException

thrown if parameters fail the validation

deleteFromTaskAsync(String jobId, String taskId, String filePath, Boolean recursive, FileDeleteFromTaskOptions fileDeleteFromTaskOptions)

Deletes the specified task file from the compute node where the task ran.

public Observable<Void> deleteFromTaskAsync(String jobId, String taskId, String filePath, Boolean recursive, FileDeleteFromTaskOptions fileDeleteFromTaskOptions)
Parameters
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
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
Observable<Void>

the ServiceResponseWithHeaders object if successful.

Exceptions
IllegalArgumentException

thrown if parameters fail the validation

deleteFromTaskAsync(String jobId, String taskId, String filePath, Boolean recursive, FileDeleteFromTaskOptions fileDeleteFromTaskOptions, final ServiceCallback<Void> serviceCallback)

Deletes the specified task file from the compute node where the task ran.

public ServiceFuture<Void> deleteFromTaskAsync(String jobId, String taskId, String filePath, Boolean recursive, FileDeleteFromTaskOptions fileDeleteFromTaskOptions, final ServiceCallback<Void> serviceCallback)
Parameters
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
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

serviceCallback
final ServiceCallback<Void>

the async ServiceCallback to handle successful and failed responses.

Returns
ServiceFuture<Void>

the ServiceFuture object

Exceptions
IllegalArgumentException

thrown if parameters fail the validation

deleteFromTaskAsync(String jobId, String taskId, String filePath, final ServiceCallback<Void> serviceCallback)

Deletes the specified task file from the compute node where the task ran.

public ServiceFuture<Void> deleteFromTaskAsync(String jobId, String taskId, String filePath, final ServiceCallback<Void> serviceCallback)
Parameters
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.

serviceCallback
final ServiceCallback<Void>

the async ServiceCallback to handle successful and failed responses.

Returns
ServiceFuture<Void>

the ServiceFuture object

Exceptions
IllegalArgumentException

thrown if parameters fail the validation