def METHOD_NAME(app_name):
    date_cutoff = get_date_cutoff()
    environments = []
    app_envs = elasticbeanstalk.get_raw_app_environments(
        app_name,
        include_deleted=True,
        deleted_back_to=date_cutoff
    )
    for env in app_envs:
        if env['Status'] == 'Terminated':
            environments.append(env)
    environments = sorted(environments, key=operator.itemgetter('DateUpdated'), reverse=True)
    return environments