Skip to main content

Rollback CSV import by task

Delete rows created by a CSV import task_id. Supports dry-run preview.

POST/api/tables/{table_id}/import-rollback/{task_id}
HTTP referenceScope tables:writeUpdated March 5, 2026

This page documents the canonical HTTP contract for this endpoint.

With dry_run=true, the response returns rows_candidate_count and does not mutate rows. A real rollback deletes manifest-tracked rows created by the import and returns requested/deleted/failed counts plus up to 25 sample IDs. Rows updated by upsert are not restored. Repeating a completed rollback returns already_rolled_back; a busy table mutation returns 409.

Path parameters

  • table_idrequired

    string

    Target table ID.

  • task_idrequired

    string

    CSV import task ID.

Query parameters

  • dry_run · optional

    boolean

    Default false. When true, returns rows_candidate_count without deleting rows.

Errors

StatusMeaning
401Invalid API key or missing auth.
403Missing tables:write scope or table access denied.
404Import manifest not found for this table/task pair.
409Research Table rows are busy with another mutation.

Docs