Parameter | Description | Value |
---|---|---|
remote-directory | Specifies a directory or path on the FTP server. | The value is a string of 1 to 64 case-insensitive characters without spaces. |
Usage Scenario
You can run the rmdir command to delete a specified directory from the remote FTP server.
Precautions
Before running the rmdir command to delete a directory, you must delete all files and subdirectories from the directory.
If no path is specified when you delete a subdirectory, the subdirectory is deleted from the current directory.
The directory is deleted from the FTP server rather than the FTP client.
# Delete the directory d:/temp1 from the remote FTP server.
<HUAWEI> ftp 10.137.217.201 Trying 10.137.217.201 ... Press CTRL+K to abort Connected to 10.137.217.201. 220 FTP service ready. User(10.137.217.201:(none)):huawei 331 Password required for huawei. Enter password: 230 User logged in.
[ftp] rmdir d:/temp1 250 'D:\temp1': directory removed.