$caila.deleteClientEntityRecords
Removes the records with the specified id for a certain client.
Syntax
The arguments accepted by the method are the name of the entity the records of which are to be removed, entity IDs (id) and the clientId:
$caila.deleteClientEntityRecords("EntityName", [Number("id"), Number("id")]);
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
EntityName | string | Yes | Name of the entity where the record is to be removed. |
id | string | Yes | Record ID. |
clientId | string | No | Client ID. |
classifierToken | string | No | API key used to access an external trained classifier. |
tip
Use the
$caila.getClientEntityRecords method to get the record IDHow to use
Remove the records of the ClientEntity entity:
state:
intent: /Delete
script:
$caila.deleteClientEntityRecords("ClientEntity", [Number("292517"), Number("292516")]);