def METHOD_NAME(queues):
    """Cancel all jobs on the given queues. If no queue names are given
    then ALL queues are cleared.
    """
    data_dict = {
        u"queues": list(queues),
    }
    queues = p.toolkit.get_action(u"job_clear")(
        {u"ignore_auth": True}, data_dict
    )
    queues = (u'"{}"'.format(q) for q in queues)
    click.secho(u"Cleared queue(s) {}".format(u", ".join(queues)), fg=u"green")