Documentation

landing.repo.unregister

landing.repo.unregister(code) 

This method deletes a block. Returns True when deletion is successful or as False, if the block was already deleted or did not exist.

Example

Method Description Available from version
code Unique code of deleted block.

Example

BX24.callMethod(
    'landing.repo.unregister',
    {code: 'myblockx'},
    function(result)
    {
        if(result.error())
            console.error(result.error());
        else
            console.info(result.data());
    }
);


© «Bitrix24», 2001-2024
Up