Delete entity storage item: entity.item.delete
We are still updating this page
Some data may be missing — we will complete it shortly.
Scope:
entityWho can execute the method: any user
The method entity.item.delete removes a storage item. The user must have at least write access permission (W) in the storage.
Parameters
|
Parameter |
Description |
|
ENTITY* |
Required. String identifier of the storage. |
|
ID* |
Required. Identifier of the item. |
Required parameters are marked with *
Example
JS
PHP
BX24.js
HTTP
try
{
const response = await $b24.callMethod(
'entity.item.delete',
{
ENTITY: 'menu_new',
ID: 842
}
);
const result = response.getData().result;
}
catch( error )
{
console.error('Error:', error);
}
try {
$response = $b24Service
->core
->call(
'entity.item.delete',
[
'ENTITY' => 'menu_new',
'ID' => 842
]
);
$result = $response
->getResponseData()
->getResult();
echo 'Success: ' . print_r($result, true);
} catch (Throwable $e) {
error_log($e->getMessage());
echo 'Error deleting entity item: ' . $e->getMessage();
}
BX24.callMethod(
'entity.item.delete',
{
ENTITY: 'menu_new',
ID: 842
}
);
https://my.bitrix24.com/rest/entity.item.delete.json?ENTITY=menu_new&ID=842&auth=340bf57f35ee95e0debf98399632999c
How to Use Examples in Documentation
Response on success
200 OK
{"result":true}
Copied
Previous