24.7. erase
Description
This command is used to delete a file stored in the file system. The system will prompt
if the target file is a bootup image/configuration or the last image.
Format
erase {{unit <unit_id>} <drive_id>} <pathname>
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 to be deleted. If it is specified in the associated form, then it is related to
the current directory.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example
To delete a file:
Zxxx0:admin#erase cfg
Command: erase cfg
Are you sure to remove the boot up Configuration from this device? (y/n)y
Success.
Zxxx0:admin#
24. File System Management Commands
203