SmileyChris / easy-thumbnails

Easy thumbnails for Django
http://easy-thumbnails.readthedocs.org/
BSD 3-Clause "New" or "Revised" License
1.39k stars 319 forks source link

Extend management command by option to delete orphans #614

Open mtueng opened 1 year ago

mtueng commented 1 year ago

Orphans are files in storage that have no source.

After years of using easy-thumbnails, we found orphaned files in stacking up in storage. Finding files without a source was not possible so far with the management command. This commit extends the existing management command to support a new option that allows exactly this. The change is backwards compatible. If you are interessted, please pull it. :-)

Signed-off-by: Max Tuengerthal max@tuengerthal.net

mogoh commented 1 month ago

I would also be interested in this pull request going through. Edit: How ever, I just tested it my test environment and it deleted all Thumbnails, not just the orphaned files. It needs to be fix first. :thinking: