def METHOD_NAME(sender, **kwargs):
    """
    When locale is removed from a project, delete TranslatedResources
    and aggregate project and locale stats.
    """
    project_locale = kwargs.get("instance", None)
    if project_locale is not None:
        project = project_locale.project
        locale = project_locale.locale
        TranslatedResource.objects.filter(
            resource__project=project, locale=locale
        ).delete()
        project.aggregate_stats()
        locale.aggregate_stats()