Delete Item
cockpit.delete_item
ActionBusiness appsconnection required
Calls the Cockpit API with the connection's credentials.
Delete one item from a collection or tree model.
Connection
- Required
- Yes — the node will not save without one
- Auth type
- API key
- Providers
- Cockpit
- Secret shape
- the API key, or {"api_key": "…"}
- Config it needs
- base_url, locale
- Resolved by
- config.connection_id, else node.connection_id
Configuration
2 fields, 2 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
model Name of the Cockpit model to work with, as it appears in the admin UI. | string | Yes | — | — | posts |
item_id The Cockpit id of the item to delete. | string | Yes | — | — | 65f1a2b3c4d5e6f708091a2b |
Example configuration
Every value below is the contract’s own example or default — nothing invented.
{
"item_id": "65f1a2b3c4d5e6f708091a2b",
"model": "posts"
}Output
One shape.
result
| Field | Type | Example |
|---|---|---|
model The model the item was deleted from. | string | — |
id The id that was deleted. | string | — |
success Cockpit's own success flag for the removal. | boolean | — |
deleted True when the item was removed. | boolean | — |
{
"deleted": false,
"id": "",
"model": "",
"success": false
}Notes
- Cockpit refuses a delete on a singleton model; only collections and trees allow it.
Related Cockpit nodes
See Delete Item run in a workflow.
In a technical demo we add the Cockpit connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.