Uninstalling an AddOn for a Specific Storefront

The addonuninstall tool can be used to remove an AddOn from the storefront.

The addonuninstall Tool

The following table lists the parameters of the addonuninstall tool:

Parameter Notes

addonnames

This parameter is mandatory. If more than one AddOn name is specified, the names must be separated by commas. If you do not include the addonnames parameter when you run the addonuninstall command, you are asked to provide it.

addonStorefront.<storefrontTemplateName>

This parameter is used to indicate which storefronts you are uninstalling the AddOn from. If more than one storefront is specified, the storefront names must be separated by commas. The <storefrontTemplateName> variable indicates the storefront template that was used for storefront generation. By default, the two possible values are yacceleratorstorefront and yb2bacceleratorstorefront.

The ant addonuninstall command has the following format:

ant addonuninstall -Daddonnames="AddOnName1,AddOnName2" -DaddonStorefront.<storefrontTemplateName>="Storefront1,Storefront2"

The following is an example of the ant addonuninstall command, where two AddOns (NewAddOn1 and NewAddOn2) are uninstalled for B2CStorefront1 and B2CStorefront2, as well as for B2BStorefront1 and B2BStorefront2:

ant addonuninstall -Daddonnames="NewAddOn1,NewAddOn2" -DaddonStorefront.yacceleratorstorefront="B2CStorefront1,B2CStorefront2" -DaddonStorefront.yb2bacceleratorstorefront="B2BStorefront1,B2BStorefront2"

Running the ant addonuninstall Command

The following procedure describes how to run the ant addonuninstall command.

  1. Before you run the ant addonuninstall command, make sure the addonsupport extension is listed in localextensions.xml file, as follows:

    ...
    <extension name="addonsupport"/>
    ...
  2. Open the command prompt and navigate to the hybris/bin/platform directory.

  3. Run the ant addonuninstall command. The command has the following format:

    ant addonuninstall -Daddonnames="AddOnName1,AddOnName2" -DaddonStorefront.<storefrontTemplateName>="Storefront1,Storefront2"
  4. When addonuninstall has finished running successfully, rebuild SAP Commerce by running ant clean all from the hybris/bin/platform directory.