Heads Up :
The post you are writing will appear in a public forum. Please ensure all content is appropriate for public consumption. Review the employee guidelines for the community here.
To completely wipe the switch, boot as normal and enter factory-reset all from switch> after you confirm twice, it will boot you into rommon and from there you will need to load the OS on there. After that, you can configure the switch as normal.