def uninstall_trigger_function(connection: connection, force: bool=False) -> None:
modifier = '<STR_LIT>'<EOL>if force:<EOL><INDENT>modifier = '<STR_LIT>'<EOL><DEDENT>log('<STR_LIT>'.format(force), logger_name=_LOGGER_NAME)<EOL>statement = UNINSTALL_TRIGGER_FUNCTION_STATEMENT.format(modifier=modifier)<EOL>execute(connection, statement)<EOL>
Uninstall the psycopg2-pgevents trigger function from the database.

    Parameters
    ----------
    connection: psycopg2.extensions.connection
        Active connection to a PostGreSQL database.
    force: bool
        If True, force the un-registration even if dependent triggers are still
        installed. If False, if there are any dependent triggers for the trigger
        function, the un-registration will fail.

    Returns
    -------
    None