XDEL

Since 1.1.0Streams

Syntax

XDEL key id [id ...]
  • Flags: write
  • ACL categories: @slow, @stream, @write
  • Arity: -3

Deletes entries from the stream at key by ID. The stream keeps its last ID, so new entries still get greater ones.

Reply

  • The number of entries deleted.

Examples

> XADD s 1-1 temp 20
"1-1"
> XDEL s 1-1 9-9
(integer) 1