def destroy
      app_instance = MnoEnterprise::AppInstance.find(params[:id])

      if app_instance
        MnoEnterprise::EventLogger.info('app_destroy', current_user.id, 'App destroyed', app_instance)
        app_instance.terminate
      end

      head :accepted
    end
def destroy
      app_instance = MnoEnterprise::AppInstance.find(params[:id])

      if app_instance
        MnoEnterprise::EventLogger.info('app_destroy', current_user.id, 'App destroyed', app_instance)
        app_instance.terminate
      end

      head :accepted
    end
DELETE /mnoe/jpi/v1/app_instances/1