Parameter | Description | Value |
---|---|---|
directory |
Specifies the name of the destination directory. |
The value is a string of case-sensitive characters in the format of [ <drive> ][ path ][ <file-name> ]. An absolute path name is a string of 1 to 255 characters. A relative path name is a string of 1 to 128 characters. Up to 8 levels of directories are supported. An absolute path is in the format of <drive> [ path ][ <file-name> ], and a relative path is in the format of [ path ][ <file-name> ]. That is, a relative path is the root path of the current working path. |
Usage Scenario
By executing the rmdir command deletes an unused or deserted directory.
Before executing the rmdir command, ensure that the directory is an empty directory, else the system throws an error message.
Configuration Impact
A directory to be deleted must be empty; otherwise, it cannot be deleted.
<HUAWEI> rmdir test/
Remove directory cfcard:/test/? [Y/N]:y
<HUAWEI> system-view [~HUAWEI] sftp 10.164.39.222 Trying 10.164.39.222 ... Press CTRL+K to abort Connected to 10.164.39.222 ... Enter User Name: client001 Enter password: sftp-client> rmdir ssh Are you sure to remove it?(Y/N):Y Successfully removed the directory: cfcard:/ssh