WebSphere Commerce Enterprise

PolicyDelete URL

This URL deletes a business policy from a store.

URL structure

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

Parameter values

policyId
Required: The policy ID for the policy you want to delete, as found in the POLICY database table.
URL
Required: The URL to be called when the command completes successfully.

Example

The following example deletes policy ID 260369:


https://myhostname/webapp/wcs/stores/servlet/PolicyDelete?policyId=260369
&URL=ContractDisplay

Behavior

This URL deletes a policy from the WebSphere Commerce database.

Exception conditions

  • _ERR_BUSINESS_POLICY_OBJECT_NOT_FOUND if one of the provided policy IDs cannot be found.
  • _ERR_POLICY_CANNOT_DELETE if one of the specified policies still be used.
  • _ERR_MISSING_CMD_PARAMETER if one of these required parameters are missing.