6-32
Deleting a File
Deleting a file on the BootWare menu
Step1
Select
3
from the file control submenu. The following information appears:
Deleting the file in cfa0:
'M' = MAIN 'B' = BACKUP 'S' = SECURE 'N/A' = NOT ASSIGNED
======================================================================
|NO. Size(B) Time Type Name
|1 941352 Nov/26/2000 12:02:42 N/A cfa0:/logfile/logfile.log |
|2 24802996 Nov/04/2007 17:03:26 N/A cfa0:/F5000-A5.bin |
|3 1355 Nov/04/2007 17:22:12 N/A cfa0:/startup.cfg |
|4 1597 Nov/04/2007 10:07:10 N/A cfa0:/~/startup.cfg |
|5 24802996 Nov/11/2055 15:11:42 M cfa0:/main.bin |
|0 Exit |
======================================================================
Enter file no:
Step2
Enter the file number, which is
4
in this example. The following information appears:
The file you selected is cfa0:/~/startup.cfg,Delete it? [Y/N]
Step3
Enter
Y
.
If the file is deleted successfully, the system displays:
Deleting...........Done!.
Deleting a file at the CLI
You can delete a file using the
delete
[
/unreserved
]
file
-
url
command in user view.
z
/unreserved
: Deletes a file permanently.
z
file-url: Specifies the file to be deleted.
# Delete the file test.txt in the root directory.
<H3C> delete test.txt
Delete cfa0:/test.txt?[Y/N]:y
%Delete file cfa0:/test.txt...Done.
Now, the file test.txt is moved to the recycle bin. If you want to restore the file, you can use the
undelete
command.
# Restore the file test.txt from the recycle bin.
<H3C> undelete test.txt
Undelete cfa0:/test.txt? [Y/N]:y
% Undeleted file cfa0:/test.txt.