code: @Override
      public void onConnect(final int rst, final HuaweiApiClient client) {
          //需要在子线程中执行删除TOKEN操作
          ThreadUtil.INST.excute(new Runnable() {
              @Override
              public void run() {
                  //调用删除TOKEN需要传入通过getToken接口获取到TOKEN，并且需要对TOKEN进行非空判断
                  if (!TextUtils.isEmpty(token)){
                      if (client == null || !ApiClientMgr.INST.isConnect(client)) {
                          HMSAgentLog.e("client not connted");
                          onDeleteTokenResult(rst);
                      } else {
                          try {
                              HuaweiPush.HuaweiPushApi.deleteToken(client, token);
                              onDeleteTokenResult(HMSAgent.AgentResultCode.HMSAGENT_SUCCESS);
                          } catch (Exception e) {
                              HMSAgentLog.e("删除TOKEN失败:" + e.getMessage());
                              onDeleteTokenResult(HMSAgent.AgentResultCode.CALL_EXCEPTION);
                          }
                      }
                  } else {
                      HMSAgentLog.e("删除TOKEN失败: 要删除的token为空");
                      onDeleteTokenResult(HMSAgent.AgentResultCode.EMPTY_PARAM);
                  }
              }
          });
      }
docs: HuaweiApiClient 连接结果回调
  
  @param rst    结果码
  @param client HuaweiApiClient 实例