User Manual

xStack® DGS-3420 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide
339
DGS-3420-28SC:admin#format d: fat32
Command: format d: fat32
Formatting........................... Done!
DGS-3420-28SC:admin#
32-9 del
Description
This command is used to delete a file. It is also used to delete a directory and its contents. The
system will prompt if the target file is a bootup image/configuration or the last image.
Format
del {{unit <unit_id>} <drive_id>} <pathname> {recursive}
Parameters
unit
- Specifies the unit ID in the stacking system. If not specified, it refers to the master unit.
<unit_id> - Enter the unit ID value here.
<drive_id> - Specifies the drive ID. If not specified, it refers to the current drive.
<pathname> - Specify the file or directory to be deleted. If it is specified in the associated form,
then it is related to the current directory.
recursive
- (Optional) Used on the directory, to delete a directory and its contents even if it is not
empty.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example
To delete a file:
DGS-3420-28SC:admin#del cfg
Command: del cfg
Are you sure to remove the boot up Configuration from this device? (y/n)y
Success.
DGS-3420-28SC:admin#
To delete a a directory with the parameter recursive”:
DGS-3420-28SC:admin# del d1 recursive
Command: del d1 recursive
Success.
DGS-3420-28SC:admin#