| **Navigation:**  [[introduction.htm|Language Reference]] > 13 - Built-in Functions >====== FREE (delete all entries) ====== | [[forwardkey pass keystrokes to control.htm|{{btn_prev_n.gif|Previous page}}]][[introduction.htm|{{btn_home_n.gif|Return to chapter overview}}]][[freestate free resources .htm|{{btn_next_n.gif|Next page}}]] | | || **FREE( **//queue// **)** {{blk2blue.jpg|blk2blue.jpg}} | **FREE** | Deletes all entries from a QUEUE. | | //queue// | The label of a QUEUE structure, or the label of a passed QUEUE parameter. | **FREE** deletes all entries from a QUEUE and de-allocates the memory they occupied. It also de-allocates the memory used by the QUEUE's "overhead." FREE does not clear the QUEUE's data buffer. If the QUEUE contains any reference variables or fields with the ANY data type, you must first CLEAR each QUEUE entry before FREEing the QUEUE. This will avoid memory leaks by freeing up the memory used by the ANY variables before the FREE statement removes the pointer to the allocated memory. **Errors Posted:** 08   Insufficient Memory **Example:** ** FREE(Location)     !Free the location queue** ** FREE(NameQue)      !Free the name queue** **See Also:** [[any any simple data type .htm|ANY]] [[clear clear a variable .htm|CLEAR]] [[reference variables.htm|Reference Variables]]