Reference > Shop flow URLs > Catalog subsystem URLs > Attributes
AttributeValueDelete URL
This URL deletes a catalog entry's defining attribute value, in all languages.
Restriction: This URL must only be used for defining attributes. Descriptive attributes are not supported.
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
- attrvalueId
- Required: The reference number of the attribute value. You must specify either attrivalueId or catentryId.
- catentryId
- Required: The reference number of the catalog entry. If only the catalog entry ID is supplied, then the command will delete all attribute values (in all languages) associated with that catalog entry. If the attribute value ID is also supplied, then only the specified attribute value (in all languages) is deleted. Do not use catentryId =0. You must specify either catentryId or attrivalueId.
- force
- 0 = no and will markForDelete all items that are associated with that attribute value; 1=yes and will delete the items from the database.
- URL
- The URL to be called when the command completes successfully.
Example 1
The following example deletes attribute value 9222 in all languages and will mark for delete all the items associated with the attribute value:
http://host_name/webapp/wcs/stores/servlet/AttributeValueDelete? attrvalueId=9222&force=0&URL=LogonForm
Example 2
The following example deletes attribute value 9222 in all languages and will mark for delete all the items associated with the attribute value:
http://host_name/webapp/wcs/stores/servlet/AttributeValueDelete? attrvalueId=9222&force=1&URL=LogonForm
Behavior
- If the attribute value ID is supplied:
- The attribute value will be deleted, regardless of the language of the attribute.
- The items associated with that attribute value will be deleted. The item is deleted or marked for deletion depending on the force parameter.
- If catalog entry ID is supplied:
- All the attribute values associated with that catalog entry will be deleted. For defining attributes and values, the catalog entry must be an item. For descriptive attributes and values, the catalog entry can be any available type of catalog entry.
- The items associated with that catalog entry will be deleted, if the force parameter is set to 1.
- If the description language ID is not supplied, then the logon language ID will be used.
Exception conditions
Either attrvalueId or catentryId is not valid.
Related concepts
Related reference