ARDEL
ARDEL key index [index ...]
- Available since:
- Redis Open Source 8.8.0
- Time complexity:
- O(N) where N is the number of indices to delete
- ACL categories:
-
@write,@array,@fast, - Compatibility:
- Redis Software and Redis Cloud compatibility
Deletes elements at the specified indices in an array.
Required arguments
key
The name of the key that holds the array.
index
One 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.
Examples
Redis Software and Redis Cloud compatibility
| Redis Software |
Redis Cloud |
Notes |
|---|---|---|
| ❌ Standard |
❌ Standard |
Return information
Integer reply: Number of elements deleted.