DocumentHelperDeleteDocument Method (TreeNode, TreeProvider, Boolean, Boolean) |
Deletes the given document.
Namespace: CMS.DocumentEngineAssembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 9.0.0
Syntax public static bool DeleteDocument(
TreeNode node,
TreeProvider tree = null,
bool deleteAllCultures = false,
bool destroyHistory = false
)
Parameters
- node
- Type: CMS.DocumentEngineTreeNode
Document node to delete - tree (Optional)
- Type: CMS.DocumentEngineTreeProvider
TreeProvider to use - deleteAllCultures (Optional)
- Type: SystemBoolean
Delete all culture version of the specified document? - destroyHistory (Optional)
- Type: SystemBoolean
Destroy the document history?
Return Value
Type:
BooleanReturns true if last culture (Tree record) has been deleted.
See Also