5-3
delete
Syntax
delete
[ /
unreserved
]
file
-
url
View
User view
Default Level
3: Manage level
Parameters
/
unreserved
: Permanently deletes the specified file, and the deleted file can never be restored.
file
-
url
: Name of the file to be deleted. Asterisks (*) are acceptable as wildcards. For example, to
remove files with the extension of
.txt
in the current directory, you may use the
delete *
.txt command.
Description
Use the
delete
command to move a specified file from a storage medium to the recycle bin, where you
can restore the file with the
undelete
command or permanently delete it with the
reset recycle-bin
command.
The
dir /all
command can display the files moved to the recycle bin. These files are enclosed in pairs
of brackets.
If you delete two files in different directories but with the same filename, only the last one is retained in
the recycle bin.
Examples
# Remove file
tt.cfg
from the root directory of the storage medium on the master after logging in to the
device.
<Sysname> delete tt.cfg
.
Delete flash:/tt.cfg?[Y/N]:y
.
%Delete file flash:/tt.cfg...Done.
# Remove file
tt.cfg
from the root directory of the storage medium on a slave (with the member ID 2)
after logging in to the device.
z
Method 1
<Sysname> delete slot2#flash:/tt.cfg
Delete slot2#flash:/tt.cfg?[Y/N]:y
%Delete file slot2#flash:/tt.cfg...Done.
z
Method 2
Summary of Contents for E4510-48G
Page 109: ...2 18 Sysname interface bridge aggregation 1 Sysname Bridge Aggregation1 shutdown ...
Page 309: ...6 4 Sysname interface vlan interface 1 Sysname Vlan interface1 ip address dhcp alloc ...
Page 324: ...8 3 Sysname interface vlan interface 1 Sysname Vlan interface1 ip address bootp alloc ...
Page 530: ...2 5 Sysname mvlan 100 subvlan 10 to 15 ...
Page 739: ...8 15 Sysname system view Sysname port security trap addresslearned ...
Page 819: ...13 11 Sysname system view Sysname public key peer key2 import sshkey key pub ...
Page 914: ...5 17 Sysname reset oam ...
Page 1064: ...5 30 Slot 2 Set next configuration file successfully ...
Page 1325: ...21 13 Examples Redirect to member 2 Sysname irf switch to 2 Sysname Slave 2 ...