On this page

Data tables

delete-table-rows

Can be held for approval

Delete rows from a Data Table by their row ids. Irreversible. Needs the fabric:table.write grant.

curl -sS -X POST https://fabric.wexa.ai/mcp/$FABRIC_PROJECT_ID \
  -H "authorization: Bearer $FABRIC_API_KEY" \
  -H "Mcp-Session-Id: $MCP_SESSION_ID" \
  -H "content-type: application/json" -H "accept: application/json" \
  -d '{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"delete-table-rows","arguments":{"table_id":"6ab1944e7566f41b5c28e2eb","row_ids":["6ab196817566f41b5c28e31e"]}}}'
{
  "content": [
    {
      "type": "text",
      "text": "{\"lifecycle_id\":\"qlc_000200\",\"result\":{\"table_id\":\"6ab1944e7566f41b5c28e2eb\",\"deleted\":1,\"row_ids\":[\"6ab196817566f41b5c28e31e\"]}}"
    }
  ],
  "isError": false
}

Parameters

ParameterTypeRequiredNotes
table_idstringRequiredTable id from list-tables, a 24-character hex id. A table in this project.
row_idsarrayRequiredAt least one. Each row's _id from query-table-rows, not its integer row_id field, and a row in that table.
Show full response

A real response, captured from a live call to delete-table-rows:

{
  "lifecycle_id": "qlc_000200",
  "result": {
    "deleted": 1,
    "row_ids": [
      "6ab196817566f41b5c28e31e"
    ],
    "table_id": "6ab1944e7566f41b5c28e2eb"
  }
}

Every tool call works the same way: How every tool call works.