{
  "schema_version": 2,
  "id": "commands/ardelrange",
  "title": "ARDELRANGE",
  "url": "https://redis.io/docs/latest/commands/ardelrange/",
  "summary": "Deletes elements in one or more ranges.",
  "since": "8.8.0",
  "tags": [
    "docs",
    "develop",
    "stack",
    "oss",
    "rs",
    "rc",
    "oss",
    "kubernetes",
    "clients"
  ],
  "last_updated": "2026-07-24T11:07:00+02:00",
  "page_type": "content",
  "content_hash": "8f17bf326eed21c67a08471460df48abed38576a1c456167cc7755c073b31728",
  "sections": [
    {
      "id": "overview",
      "title": "Overview",
      "role": "overview",
      "text": "Deletes elements in one or more ranges."
    },
    {
      "id": "required-arguments",
      "title": "Required arguments",
      "role": "content",
      "text": "<details open><summary><code>key</code></summary>\n\nThe name of the key that holds the array.\n\n</details>\n\n<details open><summary><code>range</code></summary>\n\nOne or more `start end` pairs, each defining an inclusive range of indices to delete. If `start` is greater than `end` for a given pair, the range is processed in ascending order regardless. Multiple pairs may overlap; each element is counted at most once.\n\n</details>"
    },
    {
      "id": "examples",
      "title": "Examples",
      "role": "example",
      "text": "redis> ARMSET myarray 0 \"a\" 1 \"b\" 2 \"c\" 3 \"d\" 4 \"e\"\n(integer) 5\nredis> ARDELRANGE myarray 1 3\n(integer) 3\nredis> ARCOUNT myarray\n(integer) 2\nredis> ARGET myarray 0\n\"a\"\nredis> ARGET myarray 4\n\"e\""
    },
    {
      "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[Integer reply](../../develop/reference/protocol-spec#integers): Number of elements deleted.\n\n**RESP3:**\n\n[Integer reply](../../develop/reference/protocol-spec#integers): Number of elements deleted."
    }
  ],
  "examples": []
}
