def delete_all_config_for_vlan(self, vlan_id, port_profile,
                                   trunk_vlans):
        """Top level method to delete all config for vlan_id."""
        ucsm_ips = list(CONF.ml2_cisco_ucsm.ucsms)
        for ucsm_ip in ucsm_ips:

            with self.ucsm_connect_disconnect(ucsm_ip) as handle:
                LOG.debug('Deleting config for VLAN %d from UCSM %s', vlan_id,
                    ucsm_ip)
                if (port_profile):
                    self._delete_port_profile(handle, port_profile, ucsm_ip)

                ucsm = CONF.ml2_cisco_ucsm.ucsms[ucsm_ip]
                if ucsm.sp_template_list:
                    self._remove_vlan_from_all_sp_templates(handle,
                                                            vlan_id,
                                                            ucsm_ip)
                if ucsm.vnic_template_list:
                    self._remove_vlan_from_vnic_templates(handle,
                                                          vlan_id,
                                                          ucsm_ip)
                if not (ucsm.sp_template_list and
                        ucsm.vnic_template_list):
                    self._remove_vlan_from_all_service_profiles(handle,
                                                                vlan_id,
                                                                ucsm_ip)
                self._delete_vlan_profile(handle, vlan_id, ucsm_ip)
                if trunk_vlans:
                    for vlan_id in trunk_vlans:
                        self._delete_vlan_profile(handle, vlan_id, ucsm_ip)
Top level method to delete all config for vlan_id.