Parameter | Description | Value |
---|---|---|
remote-directory | Specifies the name of a file on the SFTP server. | The value is a string of 1 to 64 case-insensitive characters without spaces. |
You can configure a maximum of 10 file names in the command and separate them using spaces and delete them at one time.
Before running the rmdir command to delete a directory, you must delete all files and subdirectories from the directory.
If the directory to be deleted is not in the current directory, you must specify the file path.
# Delete the directory 1 from the current directory, and the directory 2 from the test directory.
<HUAWEI> system-view [HUAWEI] sftp 10.137.217.201 Please input the username:admin Trying 10.137.217.201 ... Press CTRL+K to abort Connected to 10.137.217.201 ... Enter password:
sftp-client> rmdir 1 test/2
Warning: Make sure to remove these directories? [Y/N]:y
Info: Succeeded in removing the directory /test/1.
Info: Succeeded in removing the directory /test/test/2.