DeletePage Method
KalikoCMS Namespace > PageFactory Class : DeletePage Method |
Delete a single page from the system.
Syntax
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