{
  "schema_version": 2,
  "id": "commands/cluster-reset",
  "title": "CLUSTER RESET",
  "url": "https://redis.io/docs/latest/commands/cluster-reset/",
  "summary": "Resets a node.",
  "since": "3.0.0",
  "tags": [
    "docs",
    "develop",
    "stack",
    "oss",
    "rs",
    "rc",
    "oss",
    "kubernetes",
    "clients"
  ],
  "last_updated": "2026-09-18T09:48:21+01:00",
  "page_type": "content",
  "content_hash": "7b6be2b4c9ee15a216936b8b25d8b33abbc30788b6929f5d7d65a1e22efad656",
  "sections": [
    {
      "id": "overview",
      "title": "Overview",
      "role": "overview",
      "text": "Use `CLUSTER RESET` to reset a Redis Cluster node. Specify `SOFT` or `HARD` to choose the reset type.\n\nBefore you reset a primary node, remove all keys from it, for example with [FLUSHALL](https://redis.io/docs/latest/commands/flushall). Redis does not reset primary nodes that contain keys.\n\nEffects on the node:\n\n1. All the other nodes in the cluster are forgotten.\n2. All the assigned / open slots are reset, so the slots-to-nodes mapping is totally cleared.\n3. If the node is a replica its dataset is flushed, transforming the node to an empty master.\n4. `HARD` reset only: a new Node ID is generated.\n5. `HARD` reset only: `currentEpoch` and `configEpoch` variables are set to 0.\n6. The new configuration is persisted on disk in the node cluster configuration file.\n\nThis command is mainly useful to reprovision a Redis Cluster node\nin order to be used in the context of a new, different cluster. The command\nis also extensively used by the Redis Cluster testing framework in order to\nreset the state of the cluster every time a new test unit is executed.\n\nIf no reset type is specified, the default is **soft**."
    },
    {
      "id": "optional-arguments",
      "title": "Optional arguments",
      "role": "parameters",
      "text": "<details open><summary><code>HARD | SOFT</code></summary>\n\n`SOFT` (the default) resets the node but keeps its node ID; `HARD` also assigns a new node ID and clears additional state.\n\n</details>"
    },
    {
      "id": "redis-software-and-redis-cloud-compatibility",
      "title": "Redis Software and Redis Cloud compatibility",
      "role": "content",
      "text": "| Redis<br />Software | Redis<br />Cloud | <span style=\"min-width: 9em; display: table-cell\">Notes</span> |\n|:----------------------|:-----------------|:------|\n| <span title=\"Not supported\">&#x274c; Standard</span><br /><span title=\"Not supported\"><nobr>&#x274c; Active-Active</nobr></span> | <span title=\"Not supported\">&#x274c; Standard</span><br /><span title=\"Not supported\"><nobr>&#x274c; Active-Active</nobr></span> |  |"
    },
    {
      "id": "return-information",
      "title": "Return information",
      "role": "returns",
      "text": "**RESP2:**\n\n[Simple string reply](../../develop/reference/protocol-spec#simple-strings): `OK` if the command was successful. Otherwise an error is returned.\n\n**RESP3:**\n\n[Simple string reply](../../develop/reference/protocol-spec#simple-strings): `OK` if the command was successful. Otherwise an error is returned."
    }
  ],
  "examples": []
}
