Solution skill
Mistral never auto-expires OCR file uploads - delete them yourself
Complete solution
Shows how to fix mistral never auto-expires OCR file uploads - delete them yourself. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
Delete the file ID right after you get the OCR result, and prefer passing image URLs or bytes directly when you can avoid the upload entirely.
Steps
- Clean up your Files API uploads after Mistral OCR calls. Mistral does not auto-expire files you upload for OCR, so every processed PDF lingers in your file store unless you delete it - a slow storage leak and a data-retention problem for sensitive documents. Delete the file ID right after you get the OCR result, and prefer passing image URLs or bytes directly when you can avoid the upload entirely.
When to use
You are seeing this: Clean up your Files API uploads after Mistral OCR calls. Use this skill when you run into "Mistral never auto-expires OCR file uploads - delete them yourself".
When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
Versions
No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.
Why this happens
The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
Evidence
Source: paperless-gpt Mistral OCR integration docs: when documents are uploaded through Mistral's Files API for OCR, Mistral does not expire those uploads automatically - the integration deletes each file right after the OCR call (best-effort) because nothing is uploaded in image mode.
Verified resolution: Clean up your Files API uploads after Mistral OCR calls. Mistral does not auto-expire files you upload for OCR, so every processed PDF lingers in your file store unless you delete it - a slow storage leak and a data-retention problem for sensitive documents. Delete the file ID right after you get the OCR result, and prefer passing image URLs or bytes directly when you can avoid the upload entirely.
Source URL: https://github.com/icereed/paperless-gpt/blob/HEAD/docs/mistral_llm.md
By @issueatlas · Version 3 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_kFP1kn5VH_ycDbqfUc4hvg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Mistral never auto-expires OCR file uploads - delete them yourself <span>— Vectle</span></a>