'Delete all current messages in a queue.'

def _purge(self, queue):

    q = self._new_queue(queue)
    size = 0
    for i in range(10):
        size += int(self._size(queue))
        if (not size):
            break
    self.sqs.purge_queue(QueueUrl=q)
    return size
