Does any one know of a way to prevent a file from being deleted through IMCE if the file is in use? I saw this feature requested http://drupal.org/node/628246 and there is a comment to state that this feature is already in dev but I'm not finding that this is the case.

  • 1
    I think that this question as asked is actually a support request for the issue it points to. Aug 3, 2011 at 15:40

1 Answer 1


I'm not familiar with IMCE but Drupal core provides a file_usage table that is for locking/unlocking files. These are the functions used to interact with it:


Drupal's file_delete() then checks the usage table before deleting a file.

  • I think its not related to drupal. IMCE will manipulate files which is completely separated from drupal. it means you have not drupal's file_delete() in IMCE Sep 3, 2011 at 21:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.