def _delete_vlan_profile(self, handle, vlan_id, ucsm_ip):
vlan_name = self.make_vlan_name(vlan_id)<EOL>vlan_profile_dest = (const.VLAN_PATH + const.VLAN_PROFILE_PATH_PREFIX +<EOL>vlan_name)<EOL>try:<EOL><INDENT>handle.StartTransaction()<EOL>obj = handle.GetManagedObject(<EOL>None,<EOL>self.ucsmsdk.FabricVlan.ClassId(),<EOL>{self.ucsmsdk.FabricVlan.DN: vlan_profile_dest})<EOL>if obj:<EOL><INDENT>handle.RemoveManagedObject(obj)<EOL><DEDENT>handle.CompleteTransaction()<EOL><DEDENT>except Exception as e:<EOL><INDENT>raise cexc.UcsmConfigFailed(config=vlan_id,<EOL>ucsm_ip=ucsm_ip, exc=e)<EOL><DEDENT>
Deletes VLAN Profile from UCS Manager.