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

Feature Request: Delete files on disk when the corresponding object is deleted #2428

Open
berrnd opened this issue Jan 7, 2024 · 0 comments

Comments

@berrnd
Copy link
Member

berrnd commented Jan 7, 2024

Currently products, recipes, equipment, users and userfields (of type file or image) can reference files (stored in data/storage, a separate subfolder for products, recipes and so on).

Those files get currently only deleted when the user does this by e.g. deleting a product picture on the product edit page, not automatically when deleting the whole product - the same goes for recipes and all other entities.

So somehow auto-delete the corresponding files on disk when such an object is deleted. And also delete once all currently unreferenced files (create a corresponding migration job).

References #2425.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant