Delete carts
delete_cartsPermanently delete 1 to 100 carts with their analytics events, exclusive visitor sessions, and discount uses; the all-or-nothing call cannot be undone.
Instructions
Permanently delete 1 to 100 carts with their analytics events, the visitor sessions only they used and any discount use they held (the code's use count goes back down). All or nothing: an id that is not a cart of this workspace, or a cart already turned into an order (status ordered - anonymize the order instead), refuses the whole call and deletes nothing. Returns how many carts were deleted. Cannot be undone.
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": {
"ids": "<ids>"
},
"name": "delete_carts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | Yes | 1 to 100 cart ids (from list_carts) |