format

To format the bootflash device, which erases its contents and restores it to its factory-shipped state, use the format command.

format bootflash:

Syntax Description

bootflash:
Specifies the name of the bootflash file system.

Command Default

None

Command Modes

EXEC mode

Command History

Release
Modification
4.0(0)N1(1a)
This command was introduced.

Examples

This example shows how to format the bootflash device:

switch# format bootflash:
 

Related Commands

Command
Description
cd
Changes the current working directory.
dir
Displays the directory contents.
pwd
Displays the name of the current working directory.