Topic Path: Symbol Reference > Classes > TIdFTP Class > TIdFTP Methods > RemoveDir Method
ContentsIndexHome
PreviousUpNext
TIdFTP.RemoveDir Method

Removes a directory on the FTP server.

procedure RemoveDir(
    const ADirName: string
);
Parameters 
Description 
ADirName 
Directory to be removed. 

RemoveDir is a procedure used to request that the directory in ADirName be removed from the FTP server file hierarchy. 

RemoveDir sends the FTP RMD command using the argument in ADirName to remove the requested directory. 

ADirName can contain either an absolute or relative path name on the remote file system. In general, FTP server implementation will not allow the client to remove the root directory or top-level directory on the remote file system. 

Some FTP servers do not allow users to remove directory entries when their permissions are not sufficient for the operation. 

Use Delete to remove files from the FTP server file system.

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.