Click or drag to resize
DocumentHelperDeleteSiteTree Method (String, TreeProvider, DocumentHelperOnAfterDocumentDeletedEventHandler, String)
Deletes complete site tree including the version history.

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

Parameters

siteName
Type: SystemString
Site name
tree
Type: CMS.DocumentEngineTreeProvider
Tree provider to use
deleteCallback
Type: CMS.DocumentEngineDocumentHelperOnAfterDocumentDeletedEventHandler
Callback function raised when document has been deleted
webRootFullPath
Type: SystemString
Full path to the web root folder
See Also