Add and implement purgeQueue method (close #2)