code: @Override
      public void removeAttributes() {
          // TODO: there must be a direct way to clear the SO on the client side
          Set<String> names = getAttributeNames();
          for (String key : names) {
              SharedObjectEvent event = new SharedObjectEvent(Type.CLIENT_DELETE_DATA, key, null);
              ownerMessage.addEvent(event);
              syncEvents.add(event);
          }
          deleteStats.addAndGet(names.size());
          // clear data
          super.removeAttributes();
          // mark as modified
          modified.set(true);
          // broadcast 'modified' event
          notifyModified();
      }
docs: Remove all attributes (clear Shared Object)