multi-delete logoGet Started

Developer resources

Everything about building on the QuickBooks Online API: the guide, the evidence, the calls and the faults. If you are deleting records, start here.

Start here

  • I need to delete records in QuickBooks Online. The guide to deleting transactions via the API The call shapes, the batch behaviour, and the dry-run design that keeps a bulk delete honest.
  • I want to know what the API actually does. The sandbox findings: what the API refuses and what it does not, the measured limits, and the places the documentation and the API disagree.
  • I want the calls in my client now. The Postman collection Query, read, delete one, batch delete. Run it with your own credentials.

The calls at a glance

Production basehttps://quickbooks.api.intuit.com/v3/company/{realmId}
Sandbox basehttps://sandbox-quickbooks.api.intuit.com/v3/company/{realmId}
OAuth scopecom.intuit.quickbooks.accounting
minorversion we tested75
Batch limit30 operations per call, and the rejection is atomic
Delete one recordPOST /{entity}?operation=delete with { "Id": "…", "SyncToken": "…" }

The delete pipeline

A delete has no undo, so the shape of the tool matters more than the speed of it. This is the order that makes a destructive operation honest, and the only order I would ship.

1 · Connect: OAuth 2.0No password reaches us2 · Query the setPaged: never trust the default 1003 · Re-read each recordCompare the SyncToken you hold4 · Export the exact setThe backup, and the gate5 · Delete in batches of 30Sequential; honour Retry-After6 · Log every outcomeDeleted, skipped, failed: with reasons

Fault codes I have observed

The codes a delete actually returns, and the condition each one names. These are from my own runs, not a list. See the findings for the detail behind each.

CodeMeaningWhere I saw it
1040Batch size exceeds allowed limit: more than 30 operations.Observed. A 60-operation batch was rejected with created: 0. Nothing applied.
6200Account period closed: the transaction is dated before the book-closing date.Observed. Per record: the rest of the set still deletes.
3001ThrottleExceeded: the request rate was reached (HTTP 429).Observed. ~50 consecutive batch calls; Retry-After was 60 seconds.
2170Invalid Enumeration: a value the endpoint does not accept.Observed. cleared=Unreconciled on the TransactionList report.
2010Request has invalid or unsupported property.Observed. Our own error: an operation field on a batch query item, which takes Query instead.
500Unsupported Operation.Observed. Deleting via /transaction?operation=delete; the entity belongs in the path.

What I have not verified

The edge of this page. If you learn one of these, it is a correction worth having.

  • Whether the entity-specific delete needs more than {Id, SyncToken} for some entity types. One forum thread claims Invoice needs a line item; our sandbox run refuted it for Invoice, but we have not checked every entity.
  • The negative member of the cleared filter. Reconciled is valid; Uncleared has not yet survived the API.
  • Whether the cleared filter paginates, and what it does at the edges of a period.
  • Whether the book-closing date is readable through the API at all. So far: it appears not, so a closed period can only be learned from the refusal itself.
  • Production throttling. Our rate-limit numbers come from a sandbox company; a real one may differ.
  • What one batch item costs against the rate limit: one unit, or more.
  • The default query page size of 100. Observed from behaviour (160 matched, 100 returned), not read from a specification.

How Multi-Delete is built

There is no public API, and that is deliberate. A key that can bulk-delete a company's books is a liability, not a feature. The design is published so you can judge it or repeat it:

  • Read-only queries gather the set; nothing is written until the delete step.
  • Tokens stay server-side, encrypted at rest in the database (AES-256-GCM, key held outside it). No books are stored, only the tokens, so the connection survives across visits.
  • The export is a hard gate, and its token is an HMAC bound to the fingerprint of the exact set. The delete refuses a token that does not match the records it is handed.
  • Every record is re-read immediately before it is deleted and its SyncToken compared against the one captured at export; a mismatch is a skip, never a force.
  • Runs are chunked and every outcome is logged per record, with its reason.

Start with the delete guide or the sandbox findings, or download the collection.