OpenWGA 7.9 - TMLScript referenceHDBModel
Deletes a HDBModel content document
This method should be preferred for deleting HDBModel content instead of doc.remove(), as it ensures all HDBModel event scripts are run and special conditions tested.
Variant 1 is the full version taking all possible parameters for the delete operation from a HDBModelParams object.
Variant 2 is a convenience version taking just the content document to delete.
All parameters for the delete operation. The refDocument is taken as document to delete.
content (WGAPI object WGContent | TMLContext, optional):
The content document to delete. If not specified the content of the current context will be deleted.
|Allowed in script types||
Deleting the current context document. This obviously should be the last operation of an action as the current WebTML context will not be valid after that: