delete (user view)

Function

The delete command deletes the specified file from the AntiDDoS storage device. This command supports wildcard *.

Format

delete [ /unreserved ] [ /quiet ] { filename | device-name }

Parameters

Parameter Description Value
/unreserved

Deletes the specified file unreservedly. That is, the deleted file can never be restored.

-
filename

Specifies the name of the file to be deleted.

The value is a string of 1 to 160 characters in the format of [ drive ] [ path ] [ file-name ].

device-name

Specifies the name of the storage device on which all files to be deleted are saved.

-

/quiet

Delete without confirm.

-

Views

User view

Default Level

3: Management level

Usage Guidelines

The deleted file is in the recycle bin. The dir command does not display information on deleted files. However, after the dir /all command is run, information about all files under the directory, including deleted files, is displayed.

The undelete command can be used to restore a file that is deleted to the recycle bin through the delete command. To delete such a file from the recycle bin, you can use the reset recycle-bin command.

Note that if two files with the same filename in different directories are deleted to the recycle bin, only the file that is last deleted is kept.

If the target file is protected, such as the PAF, License, configuration file, patch file, and patch status file, the system prompts error messages when the file is deleted.

Example

# Delete the file cfcard:/test/test.txt.

<sysname> delete cfcard:/test/test.txt
Delete cfcard:/test/test.txt?[Y/N] Y
%Deleting file cfcard:/test/test.txt...Done!
Related Topics
reset recycle-bin
undelete

Copyright © Huawei Technologies Co., Ltd.