Back to product page
- Introduction
- License agreement
- Classes
- Enumerations
- Exceptions
- WeOnlyDo.Client.FtpDLX
- Properties
- Authentication
- Blocking
- BufferSize
- Certificate
- Compression
- DirFormat
- DirItems
- Encryption
- Hostname
- KeepAlive
- LastError
- ListItem
- ListParams
- LocalPath
- Login
- MaxTransferRate
- Passive
- Password
- Port
- PreserveDates
- PrivateKey
- Protocol
- ProxyHostname
- ProxyLogin
- ProxyPassword
- ProxyPort
- ProxyType
- PublicKeyOpenSSH
- PublicKeySSH
- RemotePath
- Resume
- SecureMethod
- SmartGet
- SmartPut
- State
- StrictHost
- Tag
- Timeout
- Timezone
- TransferMode
- TransferRate
- TransferTime
- UseIPv6
- Version
- Methods
- Events
- Properties
- WeOnlyDo.Client.DirItemsCollection
- WeOnlyDo.Client.DirItem
- How to get support?
RemoveDir method
Removes directory from the server.
Type
VoidSyntax
- C#
- VB.NET
public Void RemoveDir();
public Void RemoveDir(String RemotePath);
The RemoveDir(RemotePath) syntax has these parts:
public Void RemoveDir(String RemotePath);
The RemoveDir(RemotePath) syntax has these parts:
RemotePath | Full path to directory on remote server that should be removed. |
public Sub RemoveDir()
public Sub RemoveDir(ByVal RemotePath As String)
The RemoveDir(RemotePath) syntax has these parts:
public Sub RemoveDir(ByVal RemotePath As String)
The RemoveDir(RemotePath) syntax has these parts:
RemotePath | Full path to directory on remote server that should be removed. |
Remarks
This method will remove directory on remote server, if possible. Once completed, Done event will be fired. If no error occurs, Args.Error argument in Done event will be set to null (Nothing in VB). If error occurred, Args.Error will contain description of the error.If remote directory contains file or subdirectories - it's possible (and most common behavior) that you will be unable to remove it. This depends on implementation of this command on server side.
No wildcards can be used for RemotePath argument. RFC protocol specification for FTP or SFTP does not allow them.
Do not forget that RemotePath should always specify full absolute path (i.e. /home/joe/something) instead of relative path (i.e. joe/something).