No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search


To have a better experience, please upgrade your IE browser.


Fat AP and Cloud AP V200R010C00 Command Reference

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
rmdir (SFTP client view)

rmdir (SFTP client view)


The rmdir command deletes a specified directory from the remote SFTP server.


rmdir remote-directory &<1-10>


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.


SFTP client view

Default Level

3: Management level

Usage Guidelines

  • 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
Please input the username:admin
Trying ...
Press CTRL+K to abort
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.
Updated: 2019-11-21

Document ID: EDOC1100064352

Views: 249549

Downloads: 140

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Previous Next