def METHOD_NAME():
    """Cleaning up Flame framework context
    """
    if opfapi.CTX.flame_apps:
        print('`{}` cleaning up flame_apps:\n {}\n'.format(
            __file__, pformat(opfapi.CTX.flame_apps)))
        while len(opfapi.CTX.flame_apps):
            app = opfapi.CTX.flame_apps.pop()
            print('`{}` removing : {}'.format(__file__, app.name))
            del app
        opfapi.CTX.flame_apps = []
    if opfapi.CTX.app_framework:
        print('openpype\t: {} cleaning up'.format(
            opfapi.CTX.app_framework.bundle_name)
        )
        opfapi.CTX.app_framework.save_prefs()
        opfapi.CTX.app_framework = None