Parameter | Description | Value |
---|---|---|
remote-filename | Specifies the name of the file to be deleted from the remote 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.
If the file to be deleted is not in the current directory, you must specify the file path.
# Delete the file 3.txt from the server and backup1.txt 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> remove 3.txt test/backup1.txt Warning: Make sure to remove these files? [Y/N]:y Info: Succeeded in removing the file /3.txt. Info: Succeeded in removing the file /test/backup1.txt.