Delete all the entries of queue

In reply to kireeti1192:

Did you try it? What happens when you run this code? Why do you have to use a foreach loop?