15

I have a number of Elasticache nodes running and would like to clear them. I know it's possible to do this programmatically but I'd like to use the AWS console instead.

How can I flush an Elasticache node using only the AWS console?

Billy Blob Snortin
  • 1,101
  • 3
  • 11
  • 17

3 Answers3

50

Connect to your redis-cli with

redis-cli -h host -p port_number

After you connect, FLUSHALL

abhilashv
  • 1,418
  • 1
  • 13
  • 18
10

The only way as i see it will be to reboot the node

Shimon Tolts
  • 1,602
  • 14
  • 15
  • 4
    This shouldn't be the answer to this. https://stackoverflow.com/a/45780532/3332312 is the right answer. – nir0s Sep 13 '19 at 22:23
  • I just rebooted my Redis Elasticache node, and the cache maintained through reboot. Only thing that worked for me using redis-cli and FLUSHALL, from answer below. – pendo Oct 16 '20 at 17:49
  • This only work if the node is the primary node. – khuongduybui Apr 08 '23 at 02:09
0

It's not possible to run from the AWS Console, but you can clear the cache running FLUSHALL connecting using telnet:

telnet HOST PORT

After you connect, run FLUSHALL.

telnet host123.0001.use1.cache.amazonaws.com 6379
Trying 172.0.1.1...
Connected to host123.0001.use1.cache.amazonaws.com.
The escape character is '^]'.
FLUSHALL
+OK
mondaini
  • 117
  • 8