I'm getting below error when run cron:

The specified file could not be deleted, because it is not a valid URI. More information is available in the system log.

Due to TMP files, my site will be crashed, again we will restored site and unable to clean TMP files in my live site.

1 Answer 1


Change to another tmp folder destination? Configuration -> file system

I not sure will this help you.

  • Thnks for your quick replay @ peifa before i have tried in place of "/tmp" changed another name "/tmp2" etc no use and just i have deleted tmp file from "file_managed" table error gone away but already set cron every 1 hour after run cron tmp files must delete but in my case not work so i'm trying some custom module for against cron for deleting tmp files using hook_cron(). Commented Oct 30, 2015 at 10:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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