title: Is there a way to flushall on a cluster so all keys from master and slaves are deleted from the db
body: <p>From the documentation this seems how flushall would work but in practice it is not working that way.  When I use the command <code>flushall</code> it only flushes the keys from the db instance the cli is assigned to.</p>
  <p><a href="https://redis.io/commands/flushall" rel="nofollow noreferrer">Redis flushall documentation</a></p>
  <blockquote>
  <p>Delete all the keys of all the existing databases, not just the currently selected one. This command never fails.</p>
  <p>The time-complexity for this operation is O(N), N being the number of keys in all existing databases.</p>
  </blockquote>
  <p>For example if my cluster redis-cli has started and I search for a key and the node cli changes from 7000 to 7002 corresponding with the key that the hash is located i.e. server 7002 and then do a flush all it will delete the key per that server.</p>
  <p>However, the other keys remain.</p>
  <p>Is there a way to flushall meaning delete all keys across all masters and slaves?</p>