fix existing bug in GetDelta API, enable app restart logic when the token is deleted.