code: public boolean removeSearchFieldConfiguration(I_CmsSearchFieldConfiguration fieldConfiguration)
      throws CmsIllegalStateException {
  
          // never remove the standard field configuration
          if (fieldConfiguration.getName().equals(CmsSearchFieldConfiguration.STR_STANDARD)) {
              throw new CmsIllegalStateException(
                  Messages.get().container(
                      Messages.ERR_INDEX_CONFIGURATION_DELETE_STANDARD_1,
                      fieldConfiguration.getName()));
          }
          // validation if removal will be granted
          Iterator<I_CmsSearchIndex> itIndexes = m_indexes.iterator();
          I_CmsSearchIndex idx;
          // the list for collecting indexes that use the given field configuration
          List<I_CmsSearchIndex> referrers = new ArrayList<I_CmsSearchIndex>();
          I_CmsSearchFieldConfiguration refFieldConfig;
          while (itIndexes.hasNext()) {
              idx = itIndexes.next();
              refFieldConfig = idx.getFieldConfiguration();
              if (refFieldConfig.equals(fieldConfiguration)) {
                  referrers.add(idx);
              }
          }
          if (referrers.size() > 0) {
              throw new CmsIllegalStateException(
                  Messages.get().container(
                      Messages.ERR_INDEX_CONFIGURATION_DELETE_2,
                      fieldConfiguration.getName(),
                      referrers.toString()));
          }
  
          // remove operation (no exception)
          return m_fieldConfigurations.remove(fieldConfiguration.getName()) != null;
  
      }
docs: Removes this field configuration from the OpenCms configuration (if it is not used any more).<p>
  
  @param fieldConfiguration the field configuration to remove from the configuration
  
  @return true if remove was successful, false if preconditions for removal are ok but the given
  field configuration was unknown to the manager.
  
  @throws CmsIllegalStateException if the given field configuration is still used by at least one
  <code>{@link I_CmsSearchIndex}</code>.