XXX is a directory and cannot be removed using file_unmanaged_delete().

Error Type: 
Drupal Core
Severity: 
Error
Description: 

This error suggests a configuration error is resulting in Drupal attempting to remove what it thinks is a file, when in actual fact it is trying to remove a directory.

If this problem persists it is lilely that your data will become out of sync with the filesystem and possibly a node record has a file field with an invalid value.

Expedite

Our aim is to add enough detailed information to each of the Drupal error messages that Drupal developers will be able to fix their own problems. This exercise will take some time to complete, at the last count we had almost 700 error messages in the system.

If your site is suffering from this error message please contact us and ask us to expedite the solution to this error and we will do our best to add a solution as soon as possible.