Delete all the entries of queue

In reply to cgales:

Yeah, I had tried.
When I run this code the elements in queue are not getting deleted.

I come to know that q.delete() will delete all the items in the queue (q). Is this correct?