Bulk delete items
bulk_delete_itemsRequires items.delete. Delete up to 100 items on one sheet in one call. Uses the same bulk delete as the app, in batches of 100, and releases their barcodes. Pass item_ids. For a single row, delete_item is enough. The first call returns confirm_token and already lists items blocked by live draft stock movements, so do not confirm those. An item on a live draft stock movement is not deleted: that row is blocked with a reason that lists the document numbers, and the other rows are still deleted. The HTTP result is 200 with blocked rows, not 409. Posted stock movement lines are left as history and do not block. The result has deletedCount, blockedCount, and results (deleted, blocked, or missing). Two-step confirm_token: the first call without confirm_token only returns confirmation_required, a summary, and confirm_token. That call does not write, delete, cancel, or send. The second call must repeat the same arguments plus that confirm_token; that is the write. A confirm boolean is ignored. The token expires in 5 minutes and works once.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"item_ids": "<item_ids>"
},
"name": "bulk_delete_items"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item_ids | Yes | ||
| sheet_number | No | ||
| confirm_token | No |