Follow the instructions below to remove the Endeca application that supports Commerce Reference Store.
To run the --remove-app command:
Open a UNIX shell or command prompt.
Change directories to the CRS Endeca application’s
controldirectory, for example:cd /usr/local/endeca/Apps/CRS/controlor
cd C:\endeca\Apps\CRS\controlEnter one of the following commands.
UNIX:
./runcommand.sh --remove-appWindows:
runcommand.bat –-remove-app
The next part of the procedure involves removing the record stores in CAS. Removing these record stores requires creating a drop_records.sh|bat script and running it. The easiest way to create the drop_records.sh|bat script is to create a copy of the existing initialize_rs_feeds.sh|bat script and modify it to include only the record dropping functionality.
To remove the record stores in CAS:
Make a copy of the
initialize_rs_feeds.sh|batscript found in the CRS Endeca application’scontroldirectory, for example,/usr/local/endeca/Apps/CRS/control/initialize_rs_feeds.sh.Name the copied script
drop_records.sh.Delete everything in the script from this line down:
echo Creating fresh record stores:This leaves you with a script that looks similar to this:
CONTROL_DIR=`dirname ${0} 2>/dev/null`
. "${CONTROL_DIR}/../config/script/set_environment.sh"
RS_PREFIX=$ENDECA_PROJECT_NAME
RS_LANG=$LANGUAGE_ID
echo These record stores exist:
$CAS_ROOT/bin/component-manager-cmd.sh list-components
echo ==================================================
echo "Dropping old record stores (errors will occur on non-existent rs):"
$CAS_ROOT/bin/component-manager-cmd.sh delete-component –n
${RS_PREFIX}_${RS_LANG}_schema
$CAS_ROOT/bin/component-manager-cmd.sh delete-component –n
${RS_PREFIX}_${RS_LANG}_dimvals
$CAS_ROOT/bin/component-manager-cmd.sh delete-component –n
${RS_PREFIX}_${RS_LANG}_prules
$CAS_ROOT/bin/component-manager-cmd.sh delete-component –n
${RS_PREFIX}_${RS_LANG}_data
echo ==================================================Save the script. On UNIX, modify the file permissions of the
drop_records.shscript so that it is executable, for example:chmod 777 drop_records.shExecute the
drop_records.shscript. For example, on UNIX, enter:./drop_records.shOn Windows, enter:
drop_records.batDelete the Endeca applications directory (for example,
/usr/local/endeca/AppsorC:\endeca\Apps) from the file system.
At this point, you are ready for a clean Commerce Reference Store installation. To do a clean install, begin with the Installing the Oracle ATG Web Commerce Software section in this guide.

