Remove api_notified only if api_notified exists.