CatalogEntryDelete command

This command deletes a catalog entry. This command is called by the Product Management tools in the WebSphere Commerce Accelerator.

Command structure

http://host_name/path/
The fully qualified name of your WebSphere Commerce Server and the configuration path.

Diagram of the command structure: the command starts with the fully qualified name of your WebSphere Commerce Server and the configuration path, followed by the command name, CatalogEntryDelete  and the ? character. End the command with a list of parameters in the form of name value pairs. Separate each name value pair with the & character. For a detailed description of the parameters and their values, refer to the list entitled Parameter values.

Parameter values

catentryId
(Required) The reference number of the catalog entry. You must specify either catentryId or partnumber.
partnumber
(Required) The reference number that identifies the external part number of the catalog. You must specify either partnumber or catentryId.
force
0 = no and will markForDelete all the items that are associated with that attribute value; 1=yes and will force delete (remove from database) these items.
URL
The URL to be called when the command completes successfully.

Example 1

The following example deletes catalog entry 20215 from the database:

http://host_name/webapp/wcs/stores/servlet/CatalogEntryDelete?
catentryId=20215&force=1&URL=LogonForm

Example 2

The following example marks for delete catalog entry 10001:

http://host_name/webapp/wcs/stores/servlet/CatalogEntryDelete?
catentryId=10001&force=0&URL=LogonForm

Behavior

Exception conditions

When the force option is set to 1, but the catalog entry is in the order item, then an error will be thrown. In this case, the catalog entry will not be deleted.