'Purge all of the messages from the specified queue
:param queue: The queue to purge
:type  queue: str or unicode
:returns: Method frame from the Queue.Purge-ok response
:rtype: `pika.frame.Method` having `method` attribute of type
`spec.Queue.PurgeOk`'

def queue_purge(self, queue=''):

    with _CallbackResult(self._MethodFrameCallbackResultArgs) as purge_ok_result:
        self._impl.queue_purge(callback=purge_ok_result.set_value_once, queue=queue, nowait=False)
        self._flush_output(purge_ok_result.is_ready)
        return purge_ok_result.value.method_frame
