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):
The content document to delete.
|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: