Reference > Shop flow URLs > Trading subsystem URLs > Account and contract URLs
PolicyDelete URL
This URL deletes a business policy from a store.
URL structure
- http:// host_name/path/
- The fully qualified name of the WebSphere Commerce Server and the configuration path.
name-value pair with the & character. For a detailed description of the parameters and their values, see the list entitled Parameter values." />
Parameter values
- policyId
- Required: The policy ID for the policy 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.