Sftp.DeleteAsync Method
Namespace: Rebex.Net
Assembly: Rebex.Sftp.dll (version 7.0.9083)
DeleteAsync(String, TraversalMode, Object)
Begins asynchronous Delete operation. Deletes specified files and/or directories on the server. Accepts wildcards.
Declaration
public Task DeleteAsync(string remotePath, TraversalMode traversalMode, object state = null)
Parameters
Type | Name | Description |
---|---|---|
String | remotePath | The path (with or without wildcards) of the remote file or directory. |
TraversalMode | traversalMode | Traversal mode. |
Object | state | An optional user-provided object that identifies this particular asynchronous operation. |
Returns
Type | Description |
---|---|
Task |
Implements
DeleteAsync(FileSet, Object)
Begins asynchronous Delete operation. Deletes specified files and/or directories on the server.
Declaration
public Task DeleteAsync(FileSet set, object state = null)
Parameters
Type | Name | Description |
---|---|---|
FileSet | set | A filtering set which specifies remote files and directories to be deleted. |
Object | state | An optional user-provided object that identifies this particular asynchronous operation. |
Returns
Type | Description |
---|---|
Task |