Documentation

catalog.document.element.delete

catalog.document.element.delete(id)

Method deletes an inventory management product.

Returns true in response body on success.

Parameters

ParameterType Description
idinteger Document item ID.

Example

BX24.callMethod(
    'catalog.document.element.delete', 
    {
        'id': 42,
    }, 
    function(result)
    {
        if(result.error())
            console.error(result.error());
        else
            console.log(result.data());
    }
);
$result = CRest::call(
    'catalog.document.element.delete',
    [
        'id' => 42,
    ]
);

echo '<pre>';
print_r($result);
echo '</pre>';

© «Bitrix24», 2001-2024
Up