def METHOD_NAME(apps, schema_editor):
    Project = apps.get_model("base", "Project")
    Locale = apps.get_model("base", "Locale")
    TranslatedResource = apps.get_model("base", "TranslatedResource")
    try:
        project = Project.objects.get(slug="terminology")
    except Project.DoesNotExist:
        return
    project.delete()
    # Aggregate locale stats
    locales = list(Locale.objects.exclude(code__in=["en-US", "en"]))
    for locale in locales:
        translated_resources = TranslatedResource.objects.filter(
            resource__project__disabled=False,
            resource__project__system_project=False,
            resource__project__visibility="public",
            locale=locale,
        )
        aggregated_stats = translated_resources.aggregate(
            total=Sum("resource__total_strings"),
            approved=Sum("approved_strings"),
        )
        locale.total_strings = aggregated_stats["total"] or 0
        locale.approved_strings = aggregated_stats["approved"] or 0
    Locale.objects.bulk_update(
        locales,
        [
            "total_strings",
            "approved_strings",
        ],
    )