def METHOD_NAME(msg, topology_m4):
    """Remove all the repl agmts to supplier4. """
    log.info('%s: remove all the agreements to supplier 4...' % msg)
    for num in range(1, 4):
        try:
            topology_m4.ms["supplier{}".format(num)].agreement.delete(DEFAULT_SUFFIX,
                                                                    topology_m4.ms["supplier4"].host,
                                                                    topology_m4.ms["supplier4"].port)
        except ldap.LDAPError as e:
            log.fatal('{}: Failed to delete agmt(m{} -> m4), error: {}'.format(msg, num, str(e)))
            assert False