Problem/Motivation
When a DAM media entity is deleted from the Drupal site, the "thumbnail" file remains on the Drupal filesystem.
Steps to reproduce
- Add a media item from the DAM
- Use
/admin/content/filesto identify the asset file and thumbnail file - Go to
/admin/content/mediaand delete the media item - Correct behavior: The asset file will be deleted
- Bug: The thumbnail file will remain (correct behavior: should be deleted)
Issue fork acquia_dam-3559107
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
becw commentedComment #4
rajeshreeputra@becw - can we add test coverage if possible?
Comment #5
rajeshreeputraAdded logic to remove even the empty parent directory as well.
Comment #7
rajeshreeputraMR merged!