def empty(rq, ctx, all, queues):
    "Empty given queues."
    return ctx.invoke(
        rq_cli.empty,
        all=all,
        queues=queues or rq.queues,
        **shared_options(rq)
    )
Empty given queues.