[GH-ISSUE #484] Delete document storage data when document is deleted #371

Closed
opened 2026-02-25 21:31:47 +03:00 by kerem · 0 comments
Owner

Originally created by @ciur on GitHub (Sep 17, 2022).
Original GitHub issue: https://github.com/ciur/papermerge/issues/484

Originally assigned to: @ciur on GitHub.

For each document there two folders where associated data (e.g. original document, OCR data per page) is stored:

  • docs folder where document itself is stored
  • sidecars where OCR data is stored

Both folders are under media root (settings.MEDIA_ROOT) and are of following format:

  • <media root>/docs/<user id>/<doc id>
  • <media root>/sidecars/<user id>/<doc id>

When deleting document - it is expected that both associated folders will be deleted :

  • <media root>/docs/<user id>/<doc id>
  • <media root>/sidecars/<user id>/<doc id>

However, current functionality (which is a bug) is that when document is deleted, its sidecar folder still remains.

Originally created by @ciur on GitHub (Sep 17, 2022). Original GitHub issue: https://github.com/ciur/papermerge/issues/484 Originally assigned to: @ciur on GitHub. For each document there two folders where associated data (e.g. original document, OCR data per page) is stored: - ``docs`` folder where document itself is stored - ``sidecars`` where OCR data is stored Both folders are under media root (``settings.MEDIA_ROOT``) and are of following format: - ``<media root>/docs/<user id>/<doc id>`` - ``<media root>/sidecars/<user id>/<doc id>`` When deleting document - it **is expected that both associated folders will be deleted** : - ``<media root>/docs/<user id>/<doc id>`` - ``<media root>/sidecars/<user id>/<doc id>`` However, current functionality (which is a bug) is that when document is deleted, its sidecar folder still remains.
kerem 2026-02-25 21:31:47 +03:00
  • closed this issue
  • added the
    bug
    label
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/papermerge#371
No description provided.