'Delete the specified trunk.'

def delete_trunk(self, context, trunk_id):

    with db_api.context_manager.writer.using(context):
        trunk = self._get_trunk(context, trunk_id)
        rules.trunk_can_be_managed(context, trunk)
        trunk_port_validator = rules.TrunkPortValidator(trunk.port_id)
        if (not trunk_port_validator.is_bound(context)):
            trunk.delete()
            payload = callbacks.TrunkPayload(context, trunk_id, original_trunk=trunk)
            registry.notify(constants.TRUNK, events.PRECOMMIT_DELETE, self, payload=payload)
        else:
            raise trunk_exc.TrunkInUse(trunk_id=trunk_id)
    registry.notify(constants.TRUNK, events.AFTER_DELETE, self, payload=payload)
