CLUSTER RESET

Since 1.1.0Cluster

Syntax

CLUSTER RESET [HARD | SOFT]

Clears this node's topology: it forgets the other nodes and which slots it owns, and becomes a master with no slots.

OptionEffect
SOFTThe default. Keeps the node ID and the epochs. Refused on a master that holds keys.
HARDAlso deletes every key, resets the epochs, and gives the node a new ID.

Reply

  • OK.
  • ERR CLUSTER RESET can't be called with master nodes containing keys.

Examples

> CLUSTER RESET HARD
OK