• Invokes the endpoint to clear the selected pourable for the specified nozzle. Uses the KOS endpoint [DELETE] ${URL}/api/ext/dispense/nozzle/${nozzleId}/pipeline/beverage/select

    Parameters

    • nozzleId: string

      the nozzle id to clear the selected pourable for.

    Returns Promise<undefined | KosServiceResponse<unknown>>

    • an emtpy response.

    Example

    import { NozzleServices } from "@kosdev-code/kos-dispense-sdk";
    ...
    try {
    const response = await NozzleServices.clearPourable("nozzle-1");
    if (response?.status !== 200) {
    throw new Error("Failed to clear pourable");
    }
    } catch (e) {
    console.error(e);
    }