un1t / django-cleanup

Automatically deletes old file for FileField and ImageField. It also deletes files on models instance deletion.
MIT License
1.11k stars 79 forks source link

Feature/Management command (`cleanup_files`) #104

Closed barseghyanartur closed 1 month ago

barseghyanartur commented 11 months ago

I see an old issue which is closed for comments: https://github.com/un1t/django-cleanup/issues/19.

Why is this not yet implemented? So simple, yet so useful.

vinnyrose commented 4 months ago

I understand the request, as I have personally developed a command for a client that accomplishes what was requested in #19. In my view, such a command should be custom written to accommodate the specific system it operates within. It seems impractical for this app to offer that functionality without significantly increasing the workload to cater to each unique system. While it may be straightforward for the use case you have in mind, I believe it would not be as simple for all possible scenarios. Consequently, this is beyond the scope of this app. This app excels at one function, and I see no necessity for it to expand into another.

github-actions[bot] commented 3 weeks ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.