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

recrit’s picture

Status: Active » Needs review

the 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:

$fid = 50; // change to specific file
$file = file_load($fid);
dpm(file_usage_list($file), 'file usage');

If the file does not have anymore usage, then try the dev version of Commerce File.

recrit’s picture

Status: Needs review » Closed (works as designed)
sibiru’s picture

Issue summary: View changes

I still got this issue even in 7.x-1.x-dev even with no license file active