Skip to main content

Delete translation and parsing records

Finished PDF translations and document parses can now be deleted, and the files go with them. This is a real deletion from storage, not a row quietly hidden from the list.

Added​

  • A delete button on every finished task in PDF translation and Document parsing. It permanently removes the source file and every result from object storage. This cannot be undone.
  • DELETE /api/v1/translate/tasks/:id/record and DELETE /api/v1/mineru/tasks/:id/record do the same over the API. Both return 400 for a task that is still running — cancel it first, otherwise its worker may write results after the deletion and leave them stranded.
  • If storage is unreachable, the whole request fails with 503 and nothing is hidden. A record never disappears while its files are still there.

Changed​

  • Cancelling is untouched. DELETE /api/v1/translate/tasks/:id and DELETE /api/v1/mineru/tasks/:id still only cancel an in-flight task. Cancelling and deleting are separate endpoints on purpose, so the same request never means two different things depending on the task's state.