# Understanding theme blob assets behavior

**URL:** <https://meta.discourse.org/t/understanding-theme-blob-assets-behavior/86942>\
**Category:** Product Support\
**Created:** [May 7, 2018, 7:17pm UTC](https://meta.discourse.org/t/understanding-theme-blob-assets-behavior/86942 "2018-05-07T19:17:14Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)\
**Post date:** [May 9, 2018, 7:45am UTC](https://meta.discourse.org/t/understanding-theme-blob-assets-behavior/86942/2 "2018-05-09T07:45:09Z")

</div>

> [@sarahann](#):
>
> 1. Does discourse store asset URLs somewhere? How does it re-generate the same URL for each asset?

Yes, in the `uploads` table.

> [@sarahann](#):
>
> - Is the hash determined by hashing the asset (and would therefore always be the same as long as the asset is the same)?

The hash is the MD5 of the content of the file. So changing the name won’t do anything indeed.

> [@sarahann](#):
>
> 1. Is there a better way to delete assets that have been uploaded to a blob? Possibly deleting it from the blob throughs Discourse’s tracking off

Delete them through Discourse and not directly from the blob.

> [@sarahann](#):
>
> I’ve also noticed that when I change the name of the file in my /assets folder, then re-upload my theme (I use the discourse CLI tool) the asset continues to have the same name in [my\_theme]-\>uploads-\>add.

That’s because if an uploaded file has the same hash as a previously uploaded file, we’ll return the record associated to that file. The record includes the filename of the previously uploaded file.

---

_[View the full topic](https://meta.discourse.org/t/understanding-theme-blob-assets-behavior/86942)._
