# Is there a way invalidate cached assets?

**URL:** <https://community.directus.com/t/is-there-a-way-invalidate-cached-assets/1778>\
**Category:** Help\
**Tags:** api\
**Created:** [January 3, 2026, 6:59am UTC](https://community.directus.com/t/is-there-a-way-invalidate-cached-assets/1778 "2026-01-03T06:59:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ashkar41](https://avatars.discourse-cdn.com/v4/letter/a/ed8c4c/32.png) [@ashkar41](https://community.directus.com/u/ashkar41)\
**Post date:** [January 3, 2026, 6:59am UTC](https://community.directus.com/t/is-there-a-way-invalidate-cached-assets/1778/1 "2026-01-03T06:59:00Z")

</div>

I’m using Directus with the **S3 driver (MinIO)** and trying to understand how asset cache invalidation works for transformed images.

From what I can see:

- Image transformations requested via  
`/assets/{file-id}?width=…&quality=…&format=…`
- Are **stored directly in the same bucket**
- With **hashed filenames** that appear to encode the transformation parameters
- There is **no separate `.cache/` directory or prefix** when using S3 / MinIO

Each unique combination of transform parameters generates a new derived object, and these objects persist indefinitely.

### **Questions**

1. Is there any built-in way to invalidate or purge transformed asset variants?
2. Is there a recommended strategy to avoid cache bloat other than strictly limiting transform presets?

Tech stack & Version’s used:  
Docker self-hosted: 11.14.0  
Minio community edition with s3 driver

---

<div class="post-metadata">

**Author:** ![rijkvanzanten](https://sea2.discourse-cdn.com/flex002/user_avatar/community.directus.com/rijkvanzanten/32/31_2.png) [@rijkvanzanten](https://community.directus.com/u/rijkvanzanten)\
**Post date:** [January 6, 2026, 7:28pm UTC](https://community.directus.com/t/is-there-a-way-invalidate-cached-assets/1778/2 "2026-01-06T19:28:35Z")

</div>

There’s currently no built-in way to purge previously generated thumbnails no. In production environments I’d indeed recommend to rely on presets exclusively, so you don’t end up with bad actors blowing up your file storage.

I’ve jotted down your comment on a feature request on our end for future consideration. Thanks! 🙂

---

<div class="post-metadata">

**Author:** ![ashkar41](https://avatars.discourse-cdn.com/v4/letter/a/ed8c4c/32.png) [@ashkar41](https://community.directus.com/u/ashkar41)\
**Post date:** [January 12, 2026, 1:14pm UTC](https://community.directus.com/t/is-there-a-way-invalidate-cached-assets/1778/3 "2026-01-12T13:14:33Z")

</div>

Thanks for the clarification and for logging the feature request. In long-running setups, unmanaged asset variants can increase storage costs over time, so any future cleanup support would be greatly appreciated.
