code: def delete_port_precommit(self, context):
          
          if self._is_supported_deviceowner(context.current):
              vlan_segment, vxlan_segment = self._get_segments(
                                                  context.top_bound_segment,
                                                  context.bottom_bound_segment)
              vni = self._port_action_vxlan(context.current, vxlan_segment,
                               self._delete_nve_db) if vxlan_segment else 0
              self._port_action_vlan(context.current, vlan_segment,
                                     self._delete_nxos_db, vni)
docs: Delete port pre-database commit event.