code: def _remove_vlan_from_all_service_profiles(self, handle, vlan_id, ucsm_ip):
          
          service_profile_list = []
          for key, value in six.iteritems(self.ucsm_sp_dict):
              if (ucsm_ip in key) and value:
                  service_profile_list.append(value)
  
          if not service_profile_list:
              # Nothing to do
              return
  
          try:
              for service_profile in service_profile_list:
                  virtio_port_list = (
                      CONF.ml2_cisco_ucsm.ucsms[ucsm_ip].ucsm_virtio_eth_ports)
                  eth_port_paths = ["%s%s" % (service_profile, ep)
                      for ep in virtio_port_list]
  
                  # 1. From the Service Profile config, access the
                  # configuration for its ports.
                  # 2. Check if that Vlan has been configured on each port
                  # 3. If Vlan config found, remove it.
                  obj = handle.query_dn(service_profile)
  
                  if obj:
                      # Check if this vlan_id has been configured on the
                      # ports in this Service profile
                      for eth_port_path in eth_port_paths:
                          eth = handle.query_dn(eth_port_path)
                          if eth:
                              vlan_name = self.make_vlan_name(vlan_id)
                              vlan_path = eth_port_path + "/if-" + vlan_name
                              vlan = handle.query_dn(vlan_path)
                              if vlan:
                                  # Found vlan config. Now remove it.
                                  handle.remove_mo(vlan)
              handle.commit()
  
          except Exception as e:
              # Raise a Neutron exception. Include a description of
              # the original  exception.
              raise cexc.UcsmConfigDeleteFailed(config=vlan_id,
                                                ucsm_ip=ucsm_ip,
                                                exc=e)
docs: Deletes VLAN Profile config from server's ethernet ports.