Click or drag to resize
DocumentHelperDeleteDocument Method (TreeNode, TreeProvider, Boolean, Boolean)
Deletes the given document.

Namespace: CMS.DocumentEngine
Assembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 9.0.0
Syntax
C#
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: Boolean
Returns true if last culture (Tree record) has been deleted.
See Also