Delete a page
Namespace:
EPiServerAssembly: EPiServer (in EPiServer.dll) Version: 6.0.530.0
Syntax
| C# |
|---|
public void Delete( PageReference pageLink, bool forceDelete ) |
Parameters
- pageLink
- Type: EPiServer.Core..::.PageReference
The link to the page which will be deleted
- forceDelete
- Type: System..::.Boolean
Delete page even if being linked by other pages
Remarks
Access right required AccessLevel.Delete
Exceptions
| Exception | Condition |
|---|---|
| EPiServer.Core..::.AccessDeniedException | Thrown AccessDeniedException when user doesnt have access right to perform this action |