Wipe Cisco Switch/Router over console or SSH

In order to wipe a Cisco device(s) over a console session of SSH run the commands as shown below.

Enter privileged EXEC mode and run

write erase

Followed by

delete flash:vlan.dat

The VLAN data is stored separately from the config therefore it needs to be removed on its own.

Now al that is left is to restart the device(s) do that by using the below command

reload

After the reboot the devices are wiped.

Scroll to Top