Rollback Job
Rollback a completed or failed indexing job — removes all indexed files and their associated data.
## Behavior
- **Running job**: Returns `409 Conflict` — cancel the job first using `DELETE /v2/jobs/{job_id}`
- **Completed/Failed/Cancelled job**: Deletes all files indexed by this job and returns the list of files removed
- **Not found**: Returns `404`
## Use Cases
- Undo a completed indexing job that indexed incorrect data
- Clean up partial data from a failed job
- Remove test data after development/staging indexing runs
Authentication
AuthorizationBearer
Bearer token authentication using API key
Path parameters
job_id
The job ID to rollback
Headers
X-Organization-ID
Response
Rollback completed successfully
job_id
The job ID that was rolled back
status
Rollback status: rolled_back or error
message
Human-readable summary of the rollback
files_removed
List of file names that were removed by the rollback
rolled_back_at
RFC3339 timestamp of when the rollback completed