How to safely delete entries from a queue

In reply to smr1113:

Can you elaborate on this ?