Clean up old files in 'styles' directory

Created on 11 January 2012, about 13 years ago
Updated 17 October 2024, 6 months ago

I use the Filefield Paths module to rename image files in a custom content type. All the files for this content type are uploaded to a specific folder under the 'files' directory (so I have sites/all/default/files/custom_dir for my images). While the original files with the old name do get removed from this directory after saving a new node, I've noticed that this does not happen under the 'styles' (sites/all/default/files/styles/custom_style) directory, the standard Drupal directory for creating preview images.

The only way around this is to show no image on node preview, instead of choosing a certain image style to preview your images in when creating a node.
Would it be possible to include a feature to remove these old files in the next release?

Feature request
Status

Closed: duplicate

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

No activities found.

Production build 0.71.5 2024