FileOperations.deleteFileFromComputeNode Method

定义

重载

deleteFileFromComputeNode(String poolId, String nodeId, String fileName)

Deletes the specified file from the specified compute node.

deleteFileFromComputeNode(String poolId, String nodeId, String fileName, Boolean recursive)

Deletes the specified file from the specified compute node.

deleteFileFromComputeNode(String poolId, String nodeId, String fileName, Boolean recursive, Iterable<BatchClientBehavior> additionalBehaviors)

Deletes the specified file from the specified compute node.

deleteFileFromComputeNode(String poolId, String nodeId, String fileName)

Deletes the specified file from the specified compute node.

public void deleteFileFromComputeNode(String poolId, String nodeId, String fileName)
参数
poolId
String

The ID of the pool that contains the compute node.

nodeId
String

The ID of the compute node.

fileName
String

The name of the file to delete.

异常
BatchErrorException

Exception thrown when an error response is received from the Batch service.

IOException

Exception thrown when there is an error in serialization/deserialization of data sent to/received from the Batch service.

deleteFileFromComputeNode(String poolId, String nodeId, String fileName, Boolean recursive)

Deletes the specified file from the specified compute node.

public void deleteFileFromComputeNode(String poolId, String nodeId, String fileName, Boolean recursive)
参数
poolId
String

The ID of the pool that contains the compute node.

nodeId
String

The ID of the compute node.

fileName
String

The name of the file to delete.

recursive
Boolean

If the file-path parameter represents a directory instead of a file, you can set the recursive parameter to true to delete the directory and all of the files and subdirectories in it. If recursive is false or null, then the directory must be empty or deletion will fail.

异常
BatchErrorException

Exception thrown when an error response is received from the Batch service.

IOException

Exception thrown when there is an error in serialization/deserialization of data sent to/received from the Batch service.

deleteFileFromComputeNode(String poolId, String nodeId, String fileName, Boolean recursive, Iterable<BatchClientBehavior> additionalBehaviors)

Deletes the specified file from the specified compute node.

public void deleteFileFromComputeNode(String poolId, String nodeId, String fileName, Boolean recursive, Iterable<BatchClientBehavior> additionalBehaviors)
参数
poolId
String

The ID of the pool that contains the compute node.

nodeId
String

The ID of the compute node.

fileName
String

The name of the file to delete.

recursive
Boolean

If the file-path parameter represents a directory instead of a file, you can set the recursive parameter to true to delete the directory and all of the files and subdirectories in it. If recursive is false or null, then the directory must be empty or deletion will fail.

additionalBehaviors
Iterable<BatchClientBehavior>

A collection of BatchClientBehavior instances that are applied to the Batch service request.

异常
BatchErrorException

Exception thrown when an error response is received from the Batch service.

IOException

Exception thrown when there is an error in serialization/deserialization of data sent to/received from the Batch service.

适用于