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.
When I use the "remove" button to remove a file from a Product (where the file was stored using a commerce_file field), the file no longer shows in the Product admin UI. However, the file remains in the File directory, and the file is still listed in the file_managed table. This is not really "removing" the file. The remove functionality should delete the file from the directory and the reference in the file_managed table should also be deleted.
Comments
Comment #1
recrit CreditAttribution: recrit commentedthe file is only removed from the file_managed table if its not being used in any other fields. This is default behavior of Drupal 7 file system.
You can run the following in a devel/php window to see the usage for your specific file fid:
If the file does not have anymore usage, then try the dev version of Commerce File.
Comment #2
recrit CreditAttribution: recrit commentedComment #3
sibiru CreditAttribution: sibiru as a volunteer commentedI still got this issue even in 7.x-1.x-dev even with no license file active