Solution
To destroy a queue, you must call the Release Queue Function a number of times equal to the number of times you obtained a reference to the queue or stop all VIs using the queue reference. If the optional parameter "force destroy?" is TRUE, this function releases all references to the queue and destroys the queue.
If you need more details about this function you can refer to its
LabVIEW Help page