# Is it safe to flush redis?

**URL:** https://meta.discourse.org/t/is-it-safe-to-flush-redis/29035
**Category:** Self-hosting
**Created:** [May 20, 2015, 5:02pm UTC](https://meta.discourse.org/t/is-it-safe-to-flush-redis/29035 "2015-05-20T17:02:59Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![MrSteve](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mrsteve/32/42300_2.png) [@MrSteve](https://meta.discourse.org/u/MrSteve)
#### Post date: [May 20, 2015, 5:02pm UTC](https://meta.discourse.org/t/is-it-safe-to-flush-redis/29035/1 "2015-05-20T17:02:59Z")

</div>

Hi, I’m experiencing the problem described here – high RAM use on redis:

[https://meta.discourse.org/t/redis-server-hogging-ram/6415](https://meta.discourse.org/t/redis-server-hogging-ram/6415)

I see that this bug was fixed, so I’ll update my discourse installation shortly. Before doing so, I was considering flushing redis to clear up space (I’m almost at the limit). But I don’t know exactly what discourse uses redis for. Is it safe to just flush it? Will my users see any disruption if I do so?

Thanks!

---

<div class="post-metadata">

### Author: ![michaeld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/michaeld/32/1594_2.png) [@michaeld](https://meta.discourse.org/u/michaeld)
#### Post date: [May 20, 2015, 7:52pm UTC](https://meta.discourse.org/t/is-it-safe-to-flush-redis/29035/2 "2015-05-20T19:52:04Z")

</div>

Sidekiq uses it for event scheduling. You need to restart Sidekiq after flushing Redis.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [May 20, 2015, 8:41pm UTC](https://meta.discourse.org/t/is-it-safe-to-flush-redis/29035/3 "2015-05-20T20:41:18Z")

</div>

I recall an issue with Sidekiq where we have to kill it when memory use gets high, is that still true @sam?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [May 20, 2015, 9:29pm UTC](https://meta.discourse.org/t/is-it-safe-to-flush-redis/29035/4 "2015-05-20T21:29:32Z")

</div>

Sidekiq is safe to flush, BUT you will lose a few jobs when it is flushed (people will miss some emails) AND all clients will lose position in message bus, so blue bubble will stop working till they refresh browser.

---

<div class="post-metadata">

### Author: ![MrSteve](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mrsteve/32/42300_2.png) [@MrSteve](https://meta.discourse.org/u/MrSteve)
#### Post date: [May 22, 2015, 8:34pm UTC](https://meta.discourse.org/t/is-it-safe-to-flush-redis/29035/5 "2015-05-22T20:34:34Z")

</div>

Thanks! Flushed with no issues. 😄

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [October 7, 2018, 3:12pm UTC](https://meta.discourse.org/t/is-it-safe-to-flush-redis/29035/6 "2018-10-07T15:12:37Z")

</div>



---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [October 7, 2018, 8:14pm UTC](https://meta.discourse.org/t/is-it-safe-to-flush-redis/29035/7 "2018-10-07T20:14:49Z")

</div>


