{
  "schema_version": 2,
  "id": "commands/ardel",
  "title": "ARDEL",
  "url": "https://redis.io/docs/latest/commands/ardel/",
  "summary": "Deletes elements at the specified indices in an array.",
  "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": "779baa6faa855b0c7200e442abb5f68dea01b97dc28a0d9e2d4470c4b84472e8",
  "sections": [
    {
      "id": "overview",
      "title": "Overview",
      "role": "overview",
      "text": "Deletes elements at the specified indices in an array."
    },
    {
      "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>index</code></summary>\n\nOne or more zero-based integer indices of the elements to delete. Deleting an index that does not exist counts as zero elements deleted and does not modify the array.\n\n</details>"
    },
    {
      "id": "examples",
      "title": "Examples",
      "role": "example",
      "text": "redis> ARSET myarray 0 \"a\"\n(integer) 1\nredis> ARSET myarray 1 \"b\"\n(integer) 1\nredis> ARSET myarray 2 \"c\"\n(integer) 1\nredis> ARDEL myarray 1\n(integer) 1\nredis> ARGET myarray 1\n(nil)\nredis> ARDEL myarray 0 2\n(integer) 2\nredis> ARCOUNT myarray\n(integer) 0"
    },
    {
      "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": []
}
