Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

rmdir - Remove a remote directory

&pagelevel(4)&pagelevel

The rmdir command is used to remove an empty directory on the remote host.

rmdir

<remote-directory>


<remote-directory>

Fully qualified or relative name of a directory on the remote host.


Example

The remote host is a Unix host.

  1. List the contents of the current working directory. The FTP server function PORT is called implicitly.

    dir
    200 PORT command okay. 
    ...
    -rwx------ 1 tcptest 10505 Sep 5 18:20 alaska 
    -rw-rw-r-- 1 tcptest 229 Sep 7 13:56 anton 
    -rw-rw-r-- 1 tcptest 229 Sep 7 13:56 anton.3 
    -rw-rw-r-- 1 tcptest 229 Sep 7 13:56 anton.upd 
    -rwx------ 1 tcptest 10505 Sep 5 18:20 georgia 
    drwxrwxrwx 2 tcptest 176 Sep 7 12:55 nach.bs2000 
    drwxrwxrwx 2 tcptest 176 Sep 7 13:51 von.bs2000 
    drwxrwxrwx 2 tcptest 32 Sep 7 14:40 von.msdos 
    ...
    
  2. Remove the (empty) directory from.msdos.

    rmdir from.msdos
    250 RMD command successful.