DocumentHelperDeleteDocument Method (TreeNode, TreeProvider, Boolean, Boolean, Boolean, String, ArrayList) |
Deletes the given document.
Namespace: CMS.DocumentEngineAssembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 8.2.23
Syntax public static bool DeleteDocument(
TreeNode node,
TreeProvider tree = null,
bool deleteAllCultures = false,
bool destroyHistory = false,
bool deleteProduct = false,
string webRootFullPath = null,
ArrayList deletedNodeIDs = null
)
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? - deleteProduct (Optional)
- Type: SystemBoolean
Delete product of the document - webRootFullPath (Optional)
- Type: SystemString
Full path to the web root folder - deletedNodeIDs (Optional)
- Type: System.CollectionsArrayList
List of the deleted node IDs - used to prevent cyclic node deletion.
Return Value
Type:
BooleanReturns true if last culture (Tree record) has been deleted.
See Also