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/recordandDELETE /api/v1/mineru/tasks/:id/recorddo the same over the API. Both return400for 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
503and nothing is hidden. A record never disappears while its files are still there.
Changed
- Cancelling is untouched.
DELETE /api/v1/translate/tasks/:idandDELETE /api/v1/mineru/tasks/:idstill 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.