Subsite.delete (Method)

Deletes a child subsite.

Returns:

Void

Arguments:

Name Type Required Description
subsiteID SubsiteID Required The ID of the subsite being deleted.

Context:

License Requirements None
Permission Requirements subsite:SubsiteAdmin
Deny Context None
Require Context AuthoringEnabled
Author Lock (not required)
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
54008 This subsite cannot be deleted because it contains one or more templates which are in use by pages from other subsites.
54009 CommonSpot cannot delete a subsite that has subsites. You must delete all of the subsites under this subsite before you can delete this subsite.
54014 You don't have admin permissions to the parent of specified subsite.

Notes:

None