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

Reminder

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

upgrade

Fit 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).
delete (user view)

delete (user view)

Function

The delete command deletes a specified file in the storage device.

Format

delete [ /unreserved ] [ /force ] { filename | devicename }

Parameters

Parameter Description Value
/unreserved

Deletes a specified file. The deleted file cannot be restored.

-
/force

Deletes a file directly without any confirmation.

-
filename

Specifies the name of a file to be deleted.

The value is a string of 1 to 64 case-sensitive characters without spaces in the [ drive ] [ path ] file name format.

In the preceding parameter, drive specifies the storage device name, and path specifies the directory and subdirectory.

You are advised to add : and / between the storage device name and directory. Characters ~, *, /, \, :, ', " cannot be used in the directory name.

devicename

Deletes all the files in the storage device.

-

Views

User view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

The following describes the drive name.

  • drive is the storage device and is named flash:.

The path can be an absolute path or relative path.
  • flash:/my/test/ is an absolute path.

  • selftest/ is related to the current working directory and indicates the selftest directory in the current working directory.

Like devicename, drive specifies the storage device name.

Precautions

  • The wildcard (*) can be used in the delete command.
  • If the parameter /unreserved is not included, the file is stored in the recycle bin. To display all files including deleted files that are displayed in square brackets ([ ]), run the dir /all command. To restore these files that are displayed in square brackets ([ ]), run the undelete command. To clear these files from the recycle bin, run the reset recycle-bin command.

    If you delete a file using the /unreserved parameter, the file cannot be deleted.

  • If you delete a specified storage device, all files are deleted from the root directory of the storage device.
  • If you delete two files with the same name from different directories, the last file deleted is kept in the recycle bin.

  • If you attempt to delete a protected file, such as a configuration file, patch file, or patch status file, a system prompt is displayed.

  • You cannot delete a directory by running the delete command. To delete a directory, run the rmdir (user view) command.

Example

# Delete the file test.txt from the flash:/test/ directory.
<Huawei> delete flash:/test/test.txt
Delete flash:/test/test.txt?(y/n)[n]:y
Info: Deleting file flash:/test/test.txt...succeed.

# Delete the file test.txt from the current working directory flash:/selftest.

<Huawei> delete test.txt
Delete flash:/selftest/test.txt?(y/n)[n]:y
Info: Deleting file flash:/selftest/test.txt...succeed.
Translation
Download
Updated: 2019-07-18

Document ID: EDOC1100064353

Views: 152646

Downloads: 125

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next