CLUSTER RESET [HARD|SOFT]

    Time complexity: O(N) where N is the number of known nodes. The command may execute a FLUSHALL as a side effect.

    Effects on the node:

    • All the assigned / open slots are reset, so the slots-to-nodes mapping is totally cleared.
    • Hard reset only: a new Node ID is generated.
    • The new configuration is persisted on disk in the node cluster configuration file.This command is mainly useful to re-provision a Redis Cluster node in order to be used in the context of a new, different cluster. The command is also extensively used by the Redis Cluster testing framework in order to reset the state of the cluster every time a new test unit is executed.

    : if the command was successful. Otherwise an error is returned.