After some unsuccessful uploads I ended up with a lot of loose files in craft/storage/runtime/assets/tempuploads

They show up in the asset list when selecting assets for new entry. How do I remove them completely from the record?

Tried manually deleting them via FTP and running "Update Asset Indexes" but that didn't work. Also tried "Clear Caches" options.

2 Answers 2


In Craft 2 the only real solution is to delete all the entries from craft_assetfiles where the sourceId is set to null.

The reason why there's no clear cache tool for these is because that might allow for deletion of Assets that were just uploaded by someone else who might be about to use them.

This is really far from a practical solution and we know that, but it's not easily improved in Craft 2.

Craft 3 will slightly improve things by adding a "Temporary uploads" Asset volume which will hold all of the current user's leftover Assets, allowing you to deal with them as you would with regular Assets.

  • Thanks, I tracked these files down to the same table by folderId which is unique to a user. With sourceId column I was able to find all the files.
    – SoHo
    Commented Sep 20, 2017 at 16:47

If you've already deleted the actual files, you can try rebuilding the Asset Index (via Settings -> Update Asset Indexes

  • As I mentioned in my question, that didn't work.
    – SoHo
    Commented Sep 20, 2017 at 16:25

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.