def METHOD_NAME(older_than_days: int) -> str:
    from .models import CheckHistory
    CheckHistory.objects.filter(
        x__lt=djangotime.make_aware(dt.datetime.today())
        - djangotime.timedelta(days=older_than_days)
    ).delete()
    return "ok"