Delete a single version of a page

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

Syntax

C#
void DeleteVersion(
	PageReference pageLink
)

Parameters

pageLink
Type: EPiServer.Core..::.PageReference
Link to the page and version which will be deleted

Remarks

The published version of page cannot be deleted

Exceptions

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

See Also