# Clear Onebox Cache

**URL:** https://meta.discourse.org/t/clear-onebox-cache/40080
**Category:** Development
**Created:** [February 24, 2016, 8:36am UTC](https://meta.discourse.org/t/clear-onebox-cache/40080 "2016-02-24T08:36:57Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![mcdanlj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mcdanlj/32/131829_2.png) [@mcdanlj](https://meta.discourse.org/u/mcdanlj)
#### Post date: [January 18, 2021, 6:32pm UTC](https://meta.discourse.org/t/clear-onebox-cache/40080/7 "2021-01-18T18:32:03Z")

</div>

In the redis cli, you can also delete individual keys without flushing the entire redis cache:

```plaintext
# ./launcher enter app
# redis-cli
> keys *CACHE:onebox*example.com*
1) `"default: CACHE:onebox__https://example.com/"`
> del "default: CACHE:onebox__https://example.com/"
(integer) 1
> keys *CACHE:onebox*example.com*
(empty list or set)

```

I expect that this key schema is unlikely to change often, but if it does, you can just use `keys *onebox*url*` or even `keys *url*` to look for the cached key to delete…

I can confirm that I successfully deleted cached oneboxes and rebuilt HTML for posts affected by cached broken data using this method.

---

_[View the full topic](https://meta.discourse.org/t/clear-onebox-cache/40080)._
