Problem/Motivation
At the moment the module claims to 'force this file to be deleted' essentially by trying to remove all recorded usages of the file, so that when it's set as temporary, Drupal core will come along and remove it from the system.
However, the module is only deleting usages logged in the 'file' module, within the file usage system. If another module has recorded a usage, for example webform, then this usage will not get removed, and the file will stick around, even if it's temporary.
Steps to reproduce
Have a file that's recorded has having a usage populated by a module other than 'file'.
Proposed resolution
Loop over all modules in \Drupal\file_delete\Form\FileDeleteForm::submitForm not just the 'file' module, when removing usages.
Remaining tasks
Code up a test and a solution that resolves the issue.
User interface changes
None.
API changes
None.
Data model changes
None.
Comments