Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I'm trying to delete files via the /admin/content/file and I'm getting an error saying that the files are in use and cannot be deleted. I've already deleted the node that the files are attached to and also removed the media files from the node.
This is related to this issue: https://drupal.org/node/1240834
Has this issue been fixed? Is there a patch for this? This seems like a significant bug with either Media or core.
-Trevor
Comments
Comment #1
Dave Reid@ambientdrup: Which version of Media and File entity are you using? I know this was fixed in one of the unstable releases, but you filed this issue against unstable3, which is 4 versions old at this point.
Comment #2
ambientdrup CreditAttribution: ambientdrup commentedMedia: 7.x-2.0-unstable3
File Entity: 7.x-2.0-unstable3
-Trevor
Comment #3
Dave ReidThis has already been fixed in #1422296: Allow a file to be deleted forcefully in delete callbacks which is included in the 7.x-2.0-unstable4 release.
Comment #4
ambientdrup CreditAttribution: ambientdrup commentedOk I'll try upgrading to the unstable4.
-Trevor
Comment #5
ambientdrup CreditAttribution: ambientdrup commentedOk, unstable4 works and fixes the issue.
-Trevor