def METHOD_NAME(instance_pks):
    attribute_models.AttributeValue.objects.filter(
        variantassignments__variant_id__in=instance_pks,
        attribute__input_type__in=AttributeInputType.TYPES_WITH_UNIQUE_VALUES,
    ).delete()