Ftp.DeleteAsync Method
Namespace: Rebex.Net
Assembly: Rebex.Ftp.dll (version 7.0.9313)
DeleteAsync(String, TraversalMode, Object)
Begins asynchronous Delete operation. Deletes the specified files and/or directories at the FTP server.
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. Specifies whether the whole hierarchy or files only are transferred. |
| 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 the specified files and/or directories at the FTP 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 |