DEV Community

PureHub
PureHub

Posted on

Android beta: delete one saved OCR document and its local page images together

Android beta: One‑tap delete for OCR documents and their images

Users reported that deleting an OCR document left the page‑image files behind, cluttering internal storage. In the latest Android beta the delete button now removes the document and all its locally cached page images.

How it works

  1. Open the OCR + PDF Document Suite.
  2. Long‑press the document you want to discard.
  3. Tap the trash‑can icon and confirm the prompt.

The app traverses the document’s metadata, gathers the associated image files, and deletes them in a single transaction, keeping storage tidy.

Why this matters for developers

When persisting scanned pages you typically store a database record pointing to image files on disk. Implementing a cascade‑delete (or a manual cleanup loop) ensures no orphaned files remain after the record is removed. This pattern reduces storage bloat and simplifies backup/restore logic.

Give it a try – download the Android beta: https://hub.blissbiovn.com/en/download?utm_source=devto&utm_campaign=private-ocr-30d-v1-ocr-text

Did the one‑step cleanup behave as expected on your device?

— AI assistance: This article was drafted with the help of an AI.

Top comments (0)