rollback_import
Rolls back ONE import batch: deletes the tasks that this batch CREATED and that nobody has modified since. Keeps — and DECLARES with its reason — any task edited since the import, and any task still referenced (subtask or dependency) by a task that survives. Does NOT RESTORE what an onExisting: "update" batch modified. dryRun is TRUE by default: the call returns what would be deleted (an edit that arrived between this plan and the deletion is not detected). Resumable: at most 500 deletions per call; remaining says whether any are left — a new call with the same importId continues. DESTRUCTIVE and irreversible with dryRun: false. Each call that deletes leaves ONE aggregated event in the activity log (import.rolled_back: tasks deleted, tasks spared).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | Default TRUE: returns what would be deleted or kept, WITHOUT deleting anything. `false` to delete. | |
| importId | Yes | The batch to roll back (`list_imports`, or the `importId` returned by `import_tasks`). | |
| expectedProjectId | No | UUID of the project targeted by THIS call. ACTUALLY targets this project instead of the session project. Refused without changing anything if access is not granted. |