Delete children of a page from database.

Namespace:  EPiServer.Core
Assembly:  EPiServer (in EPiServer.dll) Version: 5.2.375.236

Syntax

C#
void DeleteChildren(
	PageReference pageLink,
	bool forceDelete
)

Parameters

pageLink
Type: EPiServer.Core..::.PageReference
The children of this page will be deleted.
forceDelete
Type: System..::.Boolean
Delete page even if referenced by other pages.

Return Value

True if the delete was successful

Exceptions

ExceptionCondition
EPiServer.Core..::.AccessDeniedExceptionThrown when user does not have enough access right to perform this action

See Also