API Guide

delete
Removes or deletes a file, including the startup configuration file.
Syntax
delete [config://filepath | coredump://filepath | home://filepath |
image://filepath | startup-configuration | severity-profile profile-name |
supportbundle://filepath | usb://filepath]
Parameters
config://filepath (Optional) Delete from the configuration directory.
coredump://filepath (Optional) Delete from the coredump directory.
home://filepath (Optional) Delete from the home directory.
image://filepath (Optional) Delete from the image directory.
startup-configuration (Optional) Delete the startup configuration.
severity-profile (Optional) Delete from severity profile directory, severity-profile://filepath.
supportbundle://filepath (Optional) Delete from the support-bundle directory.
usb://filepath (Optional) Delete from the USB file system.
Default Not configured
Command Mode EXEC
Usage
Information
Use this command to remove a regular file, software image, or startup configuration. Removing the
startup configuration restores the system to the factory default. You must reboot the switch using the
reload command for the operation to take effect.
NOTE:
Use caution when removing the startup configuration.
When the config partition has low disk space, a syslog message displays:
SYS_STAT_LOW_DISK_SPACE: Warning! Configuration directory has 0.0%
free. Please delete unnecessary files from home directory.
When you see this error, delete unwanted files from the home directory or you may encounter
degraded system performance.
Example
OS10# delete startup-configuration
OS10# delete severity-profile://mySevProf.xml
Supported
Releases
10.2.0E or later
dir
Displays files stored in available directories.
Syntax
dir {config | coredump | home | image | severity-profile | supportbundle |
usb}
Parameters
config (Optional) Folder containing configuration files.
coredump (Optional) Folder containing coredump files.
home (Optional) Folder containing files in your home directory.
image (Optional) Folder containing image files.
severity-profile (Optional) Folder containing alarm severity profiles.
supportbundle (Optional) Folder containing support bundle files.
usb (Optional) Folder containing files on a USB drive.
Default Not configured
Command Mode EXEC
72 CLI Basics