DeleteMsgFromStorage URL

This URL deletes sent or unsent messages from the database.

URL structure

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

Diagram of the URL structure: the URL starts with the fully qualified name of your WebSphere Commerce Server and the configuration path, followed by the URL name, DeleteMsgFromStorage  and the ? character. End the URL with a list of parameters in the form of name value pairs. Separate each name value pair with the & character. For a detailed description of the parameters and their values, refer to the list entitled Parameter values.

Parameter values

msg_id
(Required) The message ID. The message ID refers to the message ID in the MSGSTORE table, or message archive ID in the MSGARCHIVE table. If there is more than one message ID, each message ID is delimited by a comma.
transport_id
(Required) The transport ID identifying the transport of the message, such as e-mail.
table
(Required) The database table. A value of 0 indicates the MSGARCHIVE table, a value of 1, the MSGSTORE table.

Example 1

http://host/wcs/webapp/admin/servlet/DeleteMsgFromStorage?msg_id=10001&transport_id=1&table=0
This line will delete all messages with msgarchive_id=10001, and transport_id=1 in the MSGARCHIVE database table.

Example 2

http://host/wcs/webapp/admin/servlet/DeleteMsgFromStorage?msg_id=10001,10004&transport_id=1&table=1
This line will delete all messages with msg_id=10001 and 10004, and transport_id=1, in the MSGSTORE database table.

Behavior

Deletes messages from the MSGARCHIVE or MSGSTORE database tables.

Exception conditions

This command throws an exception when the specified msg_id and transport_id cannot locate any messages or an EJB (Enterprise Java Bean) error occurs.

Feedback