Use the following command:
and reload the switch
Don’t save the configuration.
When the switch start up its will go back to default configuration.
You can also check my article on how to reset the switch to default settings. May be it will help you.
The “running-config” is stored in the devices RAM, which wipes each time the device is “rebooted/reloaded”. To wipe the running config, simply reload or power-cycle.