'Removes all the tasks in this Queue.
This function takes constant time to purge a Queue and some delay may apply
before the call is effective.
Raises:
Error-subclass on application errors.'

def purge(self):

    request = taskqueue_service_pb.TaskQueuePurgeQueueRequest()
    response = taskqueue_service_pb.TaskQueuePurgeQueueResponse()
    request.set_queue_name(self.__name)
    if self._app:
        request.set_app_id(self._app)
    try:
        apiproxy_stub_map.MakeSyncCall('taskqueue', 'PurgeQueue', request, response)
    except apiproxy_errors.ApplicationError as e:
        raise _TranslateError(e.application_error, e.error_detail)
