Deletes one record.
- Changes data: yes
- Who can use it: Your role’s rights on that object in the “Entities” group of the role: “Delete”.
What it is for
- Remove a duplicate or a wrong record. See Fleets.
Example prompts
- “Delete trailer AA0000XX.”
- “Remove the record “Odesa → Dnipro”.”
Good to know
- Deletes trucks, trailers, drivers and data model records.
Reference
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
entity | string | yes | The object, as entities-list names it. |
id | string | yes | The record’s ID. |
reasoning | string | no | Why the record is deleted. |
Returns
deleted: true.
Errors
- “Unknown entity.” with a hint.
- “Record not found.”
- A refusal for an object that cannot be deleted.
- A truck with a trip in Pre-Execution, Execution, Post-Execution or Archived cannot be deleted.