diff --git includes/file.inc includes/file.inc
index 4f7a4c3..f8c4555 100644
--- includes/file.inc
+++ includes/file.inc
@@ -1262,6 +1262,9 @@ function file_delete(stdClass $file, $force = FALSE) {
 function file_unmanaged_delete($path) {
   // Resolve streamwrapper URI to local path.
   $path = drupal_realpath($path);
+  if (empty($path)) {
+    return TRUE;
+  }
   if (is_dir($path)) {
     watchdog('file', '%path is a directory and cannot be removed using file_unmanaged_delete().', array('%path' => $path), WATCHDOG_ERROR);
     return FALSE;
@@ -1305,6 +1308,9 @@ function file_unmanaged_delete($path) {
 function file_unmanaged_delete_recursive($path) {
   // Resolve streamwrapper URI to local path.
   $path = drupal_realpath($path);
+  if (empty($path)) {
+    return TRUE;
+  }
   if (is_dir($path)) {
     $dir = dir($path);
     while (($entry = $dir->read()) !== FALSE) {
