XDEL

Deletes a stream entry by ID.

Streams · Example verified

Syntax covered here

XDEL key id

The case removes an entry created by XADD and counts one deletion.

Tested example & replies

Requests below run in order against an empty database. Each connection authenticates with the fixture password first. Quoted values are strings; null is a nil reply; arrays preserve RESP order.

# connection: default
> XADD events 1-0 event created
"1-0"
# connection: default
> XDEL events 1-0
1