Delete a page language from database

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

Syntax

C#
void DeleteLanguageBranch(
	PageReference pageLink,
	string languageBranch
)

Parameters

pageLink
Type: EPiServer.Core..::.PageReference
The link to the page which will be deleted
languageBranch
Type: System..::.String
The language branch to delete

Remarks

You cannot delete the master language branch

Exceptions

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

See Also