def METHOD_NAME():
    """Cleanup expired partial social authentications."""
    for partial in Partial.objects.iterator():
        kwargs = partial.data["kwargs"]
        if (
            "weblate_expires" not in kwargs
            or kwargs["weblate_expires"] < time.monotonic()
        ):
            # Old entry without expiry set, or expired entry
            partial.delete()
    age = now() - timedelta(seconds=settings.AUTH_TOKEN_VALID)
    # Delete old not verified codes
    Code.objects.filter(verified=False, timestamp__lt=age).delete()
    # Delete old partial data
    Partial.objects.filter(timestamp__lt=age).delete()