delete_ec_sales
Delete synced EC sales data by channel or import batch. Specify source_channel and optional import date to remove either that day's sync or the entire channel's data.
Instructions
Deletes synced EC sales data for a channel. Provide source_channel (required) and optionally
imported_on:
with
imported_on→ deletes only that import batch (the rows synced on that date).without
imported_on→ deletes the entire channel.
Deletion is idempotent: deleted_count is 0 when nothing matched. Use read_ec_sync_status to
discover the channels and import dates available to delete.
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": {
"source_channel": "<source_channel>"
},
"name": "delete_ec_sales"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| imported_on | No | Optional import date (YYYY-MM-DD). Omit to delete the whole channel. | |
| source_channel | Yes | Channel to delete (normalized server-side). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Outcome of an EC sales deletion (delete_ec_sales). Deletion is idempotent — deleted_count is 0 when nothing matched. |