Files.deleteFromComputeNode 方法
定义
重载
deleteFromComputeNode(String poolId, String nodeId, String filePath) |
Deletes the specified file from the compute node.
|
deleteFromComputeNode(String poolId, String nodeId, String filePath, Boolean recursive, FileDeleteFromComputeNodeOptions fileDeleteFromComputeNodeOptions) |
Deletes the specified file from the compute node.
|
deleteFromComputeNode(String poolId, String nodeId, String filePath)
Deletes the specified file from the compute node.
public void deleteFromComputeNode(String poolId, String nodeId, String filePath)
参数
- poolId
- String
The ID of the pool that contains the compute node.
- nodeId
- String
The ID of the compute node from which you want to delete the file.
- filePath
- String
The path to the file or directory that you want to delete.
例外
thrown if parameters fail the validation
thrown if the request is rejected by server
all other wrapped checked exceptions if the request fails to be sent
deleteFromComputeNode(String poolId, String nodeId, String filePath, Boolean recursive, FileDeleteFromComputeNodeOptions fileDeleteFromComputeNodeOptions)
Deletes the specified file from the compute node.
public void deleteFromComputeNode(String poolId, String nodeId, String filePath, Boolean recursive, FileDeleteFromComputeNodeOptions fileDeleteFromComputeNodeOptions)
参数
- poolId
- String
The ID of the pool that contains the compute node.
- nodeId
- String
The ID of the compute node from which you want to delete the file.
- filePath
- String
The path to the 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.
- fileDeleteFromComputeNodeOptions
- FileDeleteFromComputeNodeOptions
Additional parameters for the operation
例外
thrown if parameters fail the validation
thrown if the request is rejected by server
all other wrapped checked exceptions if the request fails to be sent