def METHOD_NAME(macwatch_matches):
    """Delete unwanted matches, but keep the match
    that have posted an event latest in time."""
    match_to_keep = find_the_latest(macwatch_matches)
    for macwatch_match in macwatch_matches:
        if match_to_keep and match_to_keep.id == macwatch_match.id:
            continue
        else:
            _logger.info(
                'Deleting match %s; macwatch = %s',
                macwatch_match.id,
                macwatch_match.macwatch.id,
            )
            macwatch_match.delete()