Cisco Nexus 6000 Series NX-OS Fundamentals Command Reference
W Commands
Downloads: This chapterpdf (PDF - 45.0 KB) The complete bookPDF (PDF - 1.03 MB) | Feedback

Table of Contents

W Commands

write erase

W Commands

This chapter describes the basic Cisco NX-OS system commands that begin with W.

write erase

To erase configurations in persistent memory areas, use the write erase command.

write erase [ boot | debug ]

Syntax Description


(Optional) Erases only the boot configuration.


(Optional) Erases only the debug configuration.

Command Default

Erases all configuration in persistent memory.

Command Modes

EXEC mode

Command History



This command was introduced.

Usage Guidelines

You can use this command to erase the startup configuration in the persistent memory when information is corrupted or otherwise unusable. Erasing the startup configuration returns the switch to its initial state.


This example shows how to erase the startup configuration:

switch# write erase

This example shows how to erase the debug configuration in the persistent memory:

switch# write erase debug

Related Commands


copy running-config startup-config

Copies the running configuration to the startup configuration.

show running-config

Displays the startup configuration.