The sb:RemoveBar method will remove a previous installed soft-bar. There is only one parameter:
sb:GenerateBar.The return value will be "Success" if successful, otherwise an error description.
A typical use would be to invoke the function, and then show a message. The message could indicate success or failure:
<xf:action ev:event="my-remove-bar">
<xf:setvalue
ref="@retval"
value="sb:RemoveBar(string(../internalName))"
/>
<xf:message level="modal">
'<xf:output ref="name" />'
has
<xf:output value="
if(
@retval = 'Success',
' been removed. You will need to open a new browser window to see the change.',
concat(' failed to be removed. The error is "', @retval, '".')
)"
/>
</xf:message>
</xf:action>