When you try to remove a port group from the vSphere Client or from the ESX server console, you receive this error:
Failed to remove portgroup: VM Network, Error: Unable to delete portgroup <VM_Network>, for the following reasons: 1 active ports
Where VM_Network is the name of Port Group.