Delete storage entity.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 entity.delete method removes the storage. The user must have management rights (X) for the storage.
Parameters
|
Parameter |
Description |
|
ENTITY* |
Required. String identifier of the storage to be deleted. |
Required parameters are marked with *
Example
JS
PHP
BX24.js
try
{
const response = await $b24.callMethod(
'entity.delete',
{
'ENTITY': 'test'
}
);
const result = response.getData().result;
}
catch( error )
{
console.error('Error:', error);
}
try {
$response = $b24Service
->core
->call(
'entity.delete',
[
'ENTITY' => 'test'
]
);
$result = $response
->getResponseData()
->getResult();
echo 'Success: ' . print_r($result, true);
} catch (Throwable $e) {
error_log($e->getMessage());
echo 'Error deleting entity: ' . $e->getMessage();
}
BX24.callMethod(
'entity.delete',
{
'ENTITY': 'test'
}
);
How to Use Examples in Documentation
Response on success
200 OK
{"result":true}
Copied