You can add and delete virtual switches with ESXCLI and with vicfg-vswitch.