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.
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
- When the force parameter is set to 0, it will mark for delete the catalog entry, and will also add a timestamp to the part number of the same catalog entry.
- Either catentryId or partnumber is required.
- If the catalog entry is a product, then all its attributes, attribute values, and items will also be deleted or set to MarkForDelete. All description and inventory tables are cascade deleted.
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.