Building flows
Delete rows
Delete rows from one of your tables as a step in a flow.
The table_delete node deletes rows, which you pick either by id or with a condition.
Spec
| Field | Meaning |
|---|---|
table | Required. The table's id, which flikk tables list --columns slug,id shows. |
ids | The ids of the rows to delete, as a list or a reference to an earlier step's rows. Give either ids or where. |
where | A condition the rows must match, written as in Query rows. Give either ids or where. |
{
"slug": "drop_lead",
"type": "table_delete",
"spec": {
"table": "tbl_8f2k1",
"where": { "kind": "rule", "left": "email", "op": "is", "right": "{{trigger.email}}" }
}
}ids takes a list of ids, one id, ids separated by commas, or a list of rows, from which it reads each row's _id.
Output
| Field | Meaning |
|---|---|
deleted | How many rows the step deleted. |
{ "deleted": 1 }