7

I'm trying to delete all keys/values in an AWS ElastiCache cluster, but when I'm executing flushall or flushdb from redis-cli, it only removes the values in the node I'm currently connected to.

I am looking for one command which can delete all keys from all nodes in a cluster. I can run cluster nodes, get the list of master nodes, connect to each master node separately, then run flushdb, but that seems like a lot of overhead to call what's effectively a TRUNCATE command. Is there a simpler way to do it?

Peter Majeed
  • 5,304
  • 2
  • 32
  • 57
pawansgi92
  • 1,065
  • 13
  • 32

1 Answers1

-1

https://costimuraru.wordpress.com/2017/11/14/delete-keys-from-aws-elasticache-redis/ This link can help. Try deleting using redis-cli by connecting to aws elasti cache redis as described and see it works