code: public String remove() throws Exception {
      Class<? extends Serializable> idclass = Model.getType(getEntityName()).getIdType();
      Serializable entityId = getId(getShortName(), idclass);
      Collection<?> entities = null;
      if (null == entityId) {
        entities = getModels(getEntityName(), getIds(getShortName(), idclass));
      } else {
        Entity<?> entity = getModel(getEntityName(), entityId);
        entities = Collections.singletonList(entity);
      }
      return removeAndForward(entities);
    }
docs: Remove entities by [entity.id]/entityIds