pjs.clearMessages()
Clears a session-based Subfile Program Message Queue. This API is utilized in conjunction with setting the sflMsgQueueType configuration option to "pjs session" and the pjs.sendMessage() API.
Parameters
Program Message Queue (optional) - the name of a message queue; if not specified, the current program name is used
Example
pjs.clearMessages();