erase flash

Erases an image stored in the system flash.
Syntax
erase flash { primpary | secondary | unit-id-pri string | unit-id-sec string }
Parameters
primary
Erases the primary code image.
secondary
Erases the secondary code image.
unit-id-pri string
Erases the primary code image from the specified stack members. You can specify all or a member listwithout blank spaces (2,3,5-7).
unit-id-sec string
Erases the secondary code image from the specified stack members. You can specify all or a member list without blank spaces (2,3,5-7).
Modes

Privileged EXEC mode

Usage Guidelines

Use this command to erase the files stored in the primary or secondary flash or on the stack units.

Examples

The following example erases the image stored in the secondary flash of the system.

device# erase flash secondary

The following example erases the image stored in the secondary flash of a set of stack units.

device# erase flash unit-id-sec 3,4,5-8,9