

def remove(app_id):
    "\n    Remove a bundle ID or command as being allowed to use assistive access.\n\n    app_id\n        The bundle ID or command to remove from assistive access list.\n\n    CLI Example:\n\n    .. code-block:: bash\n\n        salt '*' assistive.remove /usr/bin/osascript\n        salt '*' assistive.remove com.smileonmymac.textexpander\n    "
    cmd = 'sqlite3 "/Library/Application Support/com.apple.TCC/TCC.db" "DELETE from access where client=\'{0}\'"'.format(app_id)
    call = __salt__['cmd.run_all'](cmd, output_loglevel='debug', python_shell=False)
    if (call['retcode'] != 0):
        comment = ''
        if ('stderr' in call):
            comment += call['stderr']
        if ('stdout' in call):
            comment += call['stdout']
        raise CommandExecutionError('Error removing app: {0}'.format(comment))
    return True

dataset/ETHPy150Open saltstack/salt/salt/modules/mac_assistive.py remove/original