Click or drag to resize
DocumentHelperDeleteSiteTree Method
Deletes complete site tree including the version history.

Namespace: CMS.DocumentEngine
Assembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 11.0.0
Syntax
C#
public static void DeleteSiteTree(
	string siteName,
	TreeProvider tree,
	DocumentHelperOnAfterDocumentDeletedEventHandler deleteCallback = null
)

Parameters

siteName
Type: SystemString
Site name
tree
Type: CMS.DocumentEngineTreeProvider
Tree provider to use
deleteCallback (Optional)
Type: CMS.DocumentEngineDocumentHelperOnAfterDocumentDeletedEventHandler
Callback function raised when document has been deleted
See Also