landing.demos.unregister
landing.demos.unregister( code )
The method deletes registered partner template. Returns true or error. In when the template was already deleted or not found, returns false.
Attention! Deletes both site with this code and all page templates with this code. Sites and pages created using these template are not deleted.
Parameters
Parameter | Description | Available from version |
---|---|---|
code | Template symbolic code. |
Example
BX24.callMethod( 'landing.demos.unregister', { code: 'myfirstsite' }, function(result) { if(result.error()) { console.error(result.error()); } else { console.info(result.data()); } } );
© «Bitrix24», 2001-2024