Back to product page
- Introduction
- License agreement
- Classes
- Enumerations
- Exceptions
- WeOnlyDo.Client.SFTP
- Methods
- Properties
- Authentication
- Blocking
- BufferSize
- Compression
- Encryption
- EncryptionList
- HMacList
- Hostname
- KeepAlives
- KeyExchangeList
- LastError
- ListItem
- LocalPath
- Login
- MaxTransferRate
- Password
- Port
- PrivateKey
- ProxyHostname
- ProxyLogin
- ProxyPassword
- ProxyPort
- ProxyType
- RemoteIdentification
- RemotePath
- Resume
- State
- Timeout
- TransferMode
- TransferRate
- TransferTime
- Version
- Events
- How to get support?
DeleteFile method
Deletes file on the server.
Type
VoidSyntax
- C#
- VB.NET
public Void DeleteFile();
public Void DeleteFile(String RemotePath);
The DeleteFile(RemotePath) syntax has these parts:
public Void DeleteFile(String RemotePath);
The DeleteFile(RemotePath) syntax has these parts:
RemotePath | Full path to file that should be deleted. |
public Sub DeleteFile()
public Sub DeleteFile(ByVal RemotePath As String)
The DeleteFile(RemotePath) syntax has these parts:
public Sub DeleteFile(ByVal RemotePath As String)
The DeleteFile(RemotePath) syntax has these parts:
RemotePath | Full path to file that should be deleted. |
Remarks
This method will delete file on remote server, if possible. Once completed, Done event will be fired. If no error occurs, Error argument in Done event will be set to null. If error occurred, Error will hold description for the error.No wildcards can be used for RemotePath argument. RFC protocol specification for SFTP does not allow them.