code: public void reset() {
      Utils.getSegmentSharedPreferences(application, tag).edit().clear().apply();
      traitsCache.delete();
      traitsCache.set(Traits.create());
      analyticsContext.setTraits(traitsCache.get());
      runOnMainThread(IntegrationOperation.RESET);
    }
docs: Resets the analytics client by clearing any stored information about the user. Events queued on
  disk are not cleared, and will be uploaded at a later time.