Page.delete (Method)

Deletes a page or template.

Returns:

Void

Arguments:

Name Type Required Description
pageID RealPageID_NonBaseTemplate Required The page's ID.
ignoreWarnings Boolean Optional. Defaults to '0'. Boolean flag which when set indicates that warnings should be ignored. If this value is false, this method throws an error with a warning message.

Context:

License Requirements None
Permission Requirements page:Admin
Deny Context None
Require Context AuthoringEnabled
Author Lock If available
Transaction Logging If transaction logging is enabled at the site level, calls to this method will be logged
Customization This method may be customized at the site level

Error Codes:

Code Error Message
31020  
31022  
31023 The specified page is a part of a targeted audience set. Deleting this page will also delete all the other pages for this audience category.
31025 The specified page or other pages within this target audience set has items that are currently Work in Progress.
31026 Insufficient permissions for deleting one of the other pages in this target audience set exist.
31029  
31030  
31031  
31033  
31034 The specified page, or one of the pages in the targeted audience, has one or more XML publications associated with it.
31035 The specified page, or one of the pages in the targeted audience, is a member of a page set.
1000425  

Notes:

None