Problem/Motivation
In #1239558: Deleting an entity with revisions and file/image field does not release file usage of non-default revisions, causing files to linger individual revisions are deleted when a content entity is about to be deleted. In this way the bug from #1239558: Deleting an entity with revisions and file/image field does not release file usage of non-default revisions, causing files to linger has gone away. Now corresponding {file_usage} table entries are cleared.
But the usage entries created until #1239558: Deleting an entity with revisions and file/image field does not release file usage of non-default revisions, causing files to linger are still there.
Proposed resolution
Add an post update path to clear orphan file usage entries.
Remaining tasks
None.
User interface changes
None.
API changes
None.
Data model changes
None.
Comments
Comment #2
claudiu.cristeaComment #4
timmillwoodThis will be done in #1239558: Deleting an entity with revisions and file/image field does not release file usage of non-default revisions, causing files to linger