DocumentHelper DeleteDocument Method (TreeNode, TreeProvider, Boolean, Boolean, Boolean, String, ArrayList)Kentico 8.1 API Reference
Deletes the given document.

Namespace: CMS.DocumentEngine
Assembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: (8.1.5347.20411)


Type: CMS.DocumentEngine TreeNode
Document node to delete
tree (Optional)
Type: CMS.DocumentEngine TreeProvider
TreeProvider to use
deleteAllCultures (Optional)
Type: OnlineSystem Boolean
Delete all culture version of the specified document?
destroyHistory (Optional)
Type: OnlineSystem Boolean
Destroy the document history?
deleteProduct (Optional)
Type: OnlineSystem Boolean
Delete product of the document
webRootFullPath (Optional)
Type: OnlineSystem String
Full path to the web root folder
deletedNodeIDs (Optional)
Type: OnlineSystem.Collections ArrayList
List of the deleted node IDs - used to prevent cyclic node deletion.

Return Value

Type: OnlineBoolean
Returns true if last culture (Tree record) has been deleted.
See Also