<p>In Craft 2 the only real solution is to delete all the entries from craft_assetfiles where the sourceId is set to <code>null</code>. </p>

<p>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.</p>

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

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

CC BY-SA 3.0
2017-09-20T16:47:57.700Z
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
CC BY-SA 3.0
2017-09-20T04:25:33.650Z
2017-09-20T04:25:33.650Z
Andris Sevcenko
<p>If you've already deleted the actual files, you can try rebuilding the Asset Index (via Settings -> Update Asset Indexes</p>

CC BY-SA 3.0
2017-09-20T16:25:08.823Z
As I mentioned in my question, that didn't work.
SoHo
CC BY-SA 3.0
2017-09-20T00:12:11.950Z
2017-09-20T00:12:11.950Z
andrew.welch
<p>After some unsuccessful uploads I ended up with a lot of loose files in craft/storage/runtime/assets/tempuploads</p>

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

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

<assets><upload>
Clearing temporary assets from craft/storage/runtime
# Clearing temporary assets from craft/storage/runtime

(Asked by: username_0 on 2017-09-19)

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.

**Tags:** assets, upload

---

## 2 answers

### Answer by username_1 on 2017-09-20. Score: 1 | Accepted answer

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.

> **Comments:**
> **username_0**: 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.  

---

### Answer by username_2 on 2017-09-20. Score: 0

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

> **Comments:**
> **username_0**: As I mentioned in my question, that didn't work.  

---

