catalog.document.delete
Scope: catalog Permissions to execute: for all
catalog.document.delete(id)
Method deleting an item.
Returns true
on success in the response body.
Parameters
Parameter | Type | Description |
---|---|---|
id | integer | Item ID. |
Example
BX24.callMethod( 'catalog.document.delete', { 'id': 42, }, function(result) { if(result.error()) console.error(result.error()); else console.log(result.data()); } );
$result = CRest::call( 'catalog.document.delete', [ 'id' => 42, ] ); echo '<pre>'; print_r($result); echo '</pre>';
© «Bitrix24», 2001-2024