Deletes a file on the FTP server.
If the sFilename parameter specifies a filename without a path, the file will be deleted from the FTP server's current working folder . If a path is specified, it can be relative to the current folder, or absolute to the remote system.
This method can only be used when the CurrentState property's value is fcsConnected.
| Parameter | Description |
|---|---|
| sFilename | The filename to delete on the remote server. Can be specified with or without a path. |
| Declaration | |
|---|---|
HRESULT DeleteFile( [in] BSTR sFilename ) | |
None
LoggingCommandLine, ProcessCompleted