{
  "id": "ardelrange",
  "title": "ARDELRANGE",
  "url": "https://redis.io/docs/latest/commands/ardelrange/",
  "summary": "Deletes elements in one or more ranges.",
  "tags": [
    "docs",
    "develop",
    "stack",
    "oss",
    "rs",
    "rc",
    "oss",
    "kubernetes",
    "clients"
  ],
  "last_updated": "2026-05-25T10:30:01-07:00",
  "page_type": "content",
  "content_hash": "0b6cc983d43bac3d042ec67f54cadecbe23690294eb273bb502a24c704c71804",
  "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": "ARMSET myarray 0 \"a\" 1 \"b\" 2 \"c\" 3 \"d\" 4 \"e\"\nARDELRANGE myarray 1 3\nARCOUNT myarray\nARGET myarray 0\nARGET myarray 4"
    },
    {
      "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": []
}
