Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete document storage data when document is deleted #484

Closed
ciur opened this issue Sep 17, 2022 · 0 comments
Closed

Delete document storage data when document is deleted #484

ciur opened this issue Sep 17, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@ciur
Copy link
Owner

ciur commented Sep 17, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant