Firstly note that this will wipe the configuration off the switch, do not do this in a production network unless you intentionally want to do this.
Type the below command this will erase the configuration from the non-volatile memory (nvram)
Type reload and enter Type the Below: enable, enter write erase, enter reload, enter
Step 2:
You will be prompted to save configuration
Step 3:
Confirm by hitting enter
Step 4:
Once the Switch has rebooted run the command show vlan, you will note that the vlan configurations are still there, that is because they are stored in the flash memory in the vlan.dat file
There are two ways to remove it
Step 5:
First way to delete vlans Type the following: enable, enter Configure terminal, enter no vlan 10, enter exit, enter show vlan , enter
Step 6:
Second Way, Locate the the Vlan.dat file in the directory
Step 7:
Remove file
Reload Switch Type the following: enable, enter delete vlan.dat, enter enter
Step 8:
Confirm removal by running show vlan command Type the below: enable, enter Show vlan, enter