DeletePage Method

Example 

Delete a single page from the system.

Syntax

'Declaration
 
Public Shared Sub DeletePage( _
   ByVal pageId As Guid _
) 
public static void DeletePage( 
   Guid pageId
)

Parameters

pageId

Remarks

In reality only flags it as deleted in the database and making it excluded from being read when indexing the site. If you wish to "rescue" an erroneously deleted page you can do so by removing the delete date from it and all pages that is under it and restart the site.

 

Will raise the PageDeleted event on PageFactory

Example

PageFactory.DeletePage(pageId);

Requirements

 

 

See Also

This documentation was created using Document! X from Innovasys