CatalogEntryDelete URL

This URL deletes a catalog entry.

URL 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 the catentryId or the partnumber parameter.
partnumber
Required: The reference number that identifies the external part number of the catalog. You must specify either partnumber or catentryId.
force
This parameter accepts the following values:
0
Marks all of the items that are associated with that attribute value (catalog entry or part number) for deletion.
1
Forces the removal from the database of all of the items that are associated with that attribute value (catalog entry or part number).

If you do not specify this parameter, a default value of 0 is used.

checkATP
This parameter accepts the following values:
true
If the checkATP parameter is set to true, the command checks if the catalog entry being deleted is the last catalog entry associated with a base item or item specification.

If the catalog entry is the last one associated with with a base item or item specification, then the base item or item specification will be marked for deletion, regardless of the force parameter setting.

The force option is only applicable to the catalog entry, not the inventory.

false
If the checkATP parameter is set to false, no check is performed.

A time stamp will be appended to the part number of the base item or item specification associated with the catalog entry being deleted. They will not be deleted or marked for deletion.

If you do not specify this parameter, a default value of false is used.

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.