You can uninstall a logical switch by using the vSphere Web Client.

You must have been assigned the Enterprise Administrator or NSX Administrator role.

1

In the vSphere Web Client, navigate to Home > Networking & Security > Logical Switches.

2

Select a logical switch and remove any attached virtual machines by clicking the Remove Virtual Machine icon.

For example:

3

With the logical switch selected, click the Delete (delete) icon.