Postponed
Project:
Drupal core
Version:
main
Component:
entity system
Priority:
Major
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
6 Jun 2016 at 12:19 UTC
Updated:
1 Oct 2026 at 13:50 UTC
Jump to comment: Most recent
#1239558: Deleting an entity with revisions and file/image field does not release file usage of non-default revisions, causing files to linger shows that we have a data loss/integrity issue when entities are deleted, since modules can and do react to hook_entity_revision_delete().
Either delete revisions individually when deleting the entity as a whole.
Or explicitly document that hook_entity_revision_delete() doesn't fire when then entity as a whole is deleted, and modules need to account for that case in hook_entity_delete()
Comments
Comment #2
catchComment #3
dawehnerWhat do we do with entity translations? They could have the exact same problem as well.
Comment #6
wim leersComment #10
anavarreIIUC Wim's comment in #1239558-126: Deleting an entity with revisions and file/image field does not release file usage of non-default revisions, causing files to linger this should be postponed on #89181: Use queue API for node and comment, user, node multiple deletes.
Comment #21
smustgrave commentedThank you for creating this issue to improve Drupal.
We are working to decide if this task is still relevant to a currently supported version of Drupal. There hasn't been any discussion here for over 8 years which suggests that this has either been implemented or is no longer relevant. Your thoughts on this will allow a decision to be made.
Since we need more information to move forward with this issue, the status is now Postponed (maintainer needs more info). If we don't receive additional information to help with the issue, it may be closed after three months.
Thanks!