This function is declared in the kos/queue.h file.
kos/queue.h
void KosQueueFlush(KosQueueHandle queue);
This function extracts all objects from the specified queue and frees all the memory occupied by it.
queue