If you want to reset the whole switch to factory defaults, log on and use the command:
unconfig switch all
However, you'll obviously need a console cable connected to re-configure it, as any IP addresses on there will be wiped (including the Mgmt interface).