Reset password on Cisco Switch

We recently moved out of one of our hosting centers into a managed solution. As such, we no longer required a few of the switches/other network equipment/servers from this hosting center. Unfortunately I was working on the switches at the remote site and did not have my password sheet accessible, so I just reset the enable password so I could clear the configuration.

Power up the switch and press and hold the Mode button (on the physical switch)
My 2950 automatically went into “switch:” mode before I let go of the button, but the 3560 required me to release the mode button before successfully entering “switch:” mode.

flash_init
load_helper
dir flash:
rename flash:config.text flash:config.text.old
boot
N
enable
rename flash:config.text.old flash:config.text
copy flash:config.text system:running-config
configure terminal
enable secret password
exit
copy running-config startup-config
reload

After booting, enter enable mode
write erase
reload