Discuss this help topic in SecureBlackbox Forum


TElSimpleSFTPClient     See also     

Filter: C#/Java  VB.NET  Pascal  C++  PHP  

Removes the directory on a server side.


    void RemoveDirectory(string Path);
    void RemoveDirectory(string Path, bool Recursive);

    Sub RemoveDirectory(ByVal Path As String)
    Sub RemoveDirectory(ByVal Path As String, ByVal Recursive As Boolean)

    procedure RemoveDirectory(const Path: string);
    procedure RemoveDirectory(const Path: string; Recursive : boolean);

    void RemoveDirectory(const std::string &Path);
    void RemoveDirectory(const std::string &Path, bool Recursive);

    void RemoveDirectory(string $Path)
    void RemoveDirectory(string $Path, bool $Recursive)


  • Path - path to directory to be removed
  • Recursive - specifies, whether to remove directories recursively, i.e. including subdirectories


    Use this method to delete the directory specified by Path parameter.
    In case of error, EElSFTPError exception containing SFTP error code, is raised. For more information on error handling, please read the corresponding how-to article.

See also:     MakeDirectory     OpenDirectory    

Discuss this help topic in SecureBlackbox Forum