code: public void unsubscribe(String subscriptionId) throws WorkspaceApiException {
          try {
              ApiSuccessResponse resp = api.unsubscribe(subscriptionId);
              Util.throwIfNotOk(resp);
          }
          catch(ApiException ex) {
              throw new WorkspaceApiException("Cannot unsubscribe", ex);
          }
      }
docs: Unsubscribe from the specified group of statistics.
  @param subscriptionId The unique ID of the subscription.