def delete_user(name, runas=None):
    if runas is None:
        runas = salt.utils.get_user()
    res = __salt__['cmd.run'](
        ['rabbitmqctl', 'delete_user', name],
        python_shell=False,
        runas=runas)
    msg = 'Deleted'

    return _format_response(res, msg)
Deletes a user via rabbitmqctl delete_user.
dataset/ETHPy150Open saltstack/salt/salt/modules/rabbitmq.py/delete_user