def uninstall_tracer(pattern=r".*", flags=0):
    """
    Installs the tracer in the candidates modules for tracing matching given pattern.

    :param pattern: Matching pattern.
    :type pattern: unicode
    :param flags: Matching regex flags.
    :type flags: int
    :return: Definition success.
    :rtype: bool
    """

    for module in REGISTERED_MODULES:
        if not is_traced(module):
            continue

        if not re.search(pattern, module.__name__, flags=flags):
            continue

        untrace_module(module)
    return True
Installs the tracer in the candidates modules for tracing matching given pattern.

    :param pattern: Matching pattern.
    :type pattern: unicode
    :param flags: Matching regex flags.
    :type flags: int
    :return: Definition success.
    :rtype: bool