(rule)
Deletes all case duplicates for this rule
Deletes all case duplicates for this rule
Deletes all case duplicates for this rule
def reset_deduplicate_rule(rule):
    """Deletes all case duplicates for this rule
    """
    from corehq.apps.data_interfaces.models import (
        CaseDeduplicationActionDefinition,
        CaseDuplicate,
    )
    deduplicate_action = CaseDeduplicationActionDefinition.from_rule(rule)
    CaseDuplicate.objects.filter(action=deduplicate_action).delete()
def reset_deduplicate_rule ( rule ) : from corehq . apps . data_interfaces . models import ( CaseDeduplicationActionDefinition , CaseDuplicate , ) deduplicate_action = CaseDeduplicationActionDefinition . from_rule ( rule ) CaseDuplicate . objects . filter ( action = deduplicate_action ) . delete ( )