Clear Account Data
clear_account_dataReset a SANDBOX (pre-go-live) account to empty so it can be seeded again from scratch (governed two-step, destructive). Deletes every transactional row — items, customers, suppliers, sales and purchase orders, inventory, history, signals, 3PL clients — then re-creates the structural defaults a seed needs (default warehouse, store, units, tax rate) and re-derives the onboarding checklist. Users, credentials (including this one), integrations, automation rules and settings survive. LIVE accounts are always refused — this tool can never delete a paying customer's data. Requires an operator (unpinned) credential granted the sandbox.reset capability. Call with preview=true first to get the blast-radius counts and a previewReceipt, confirm with the user, then repeat with the previewReceipt and a fresh idempotencyKey. Afterwards get_onboarding_state shows zero items/orders and the account is ready for import_historical_sales_orders.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "clear_account_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| preview | No | Step 1 of the required two-step write: set true to receive the blast-radius preview (row counts of what would be deleted, what survives) plus a single-use previewReceipt. Nothing is deleted until the commit call. | |
| idempotencyKey | No | Caller-generated idempotency key; required with previewReceipt to commit. A replay with the same key returns the stored result and never wipes twice. | |
| previewReceipt | No | Step 2 of the required two-step write: the receipt returned by the preview call. Supply together with a fresh idempotencyKey to commit; calls without it are refused. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| status | No | ||
| cleared | No | ||
| message | No | ||
| preview | No | ||
| expiresAt | No | ||
| tenantName | No | ||
| actionItemId | No | ||
| confirmation | No | ||
| correlationId | No | ||
| approvalResult | No | ||
| idempotencyKey | No | ||
| previewReceipt | No | ||
| idempotentReplay | No | ||
| structuralDefaultsRestored | No | ||
| onboardingChecklistResynced | No |