Prusa MINI Firmware overview
vQueueDelete

queue. h

void vQueueDelete( QueueHandle_t xQueue );

Delete a queue - freeing all the memory allocated for storing of items placed on the queue.

Parameters
xQueueA handle to the queue to be deleted.