XDEL

Apply for Redis Developer Course Redis Regular Inspection / Technical Support Redis Enterprise Server

Delete entries

Usage: XDEL key ID.

Example

Command>XDEL sensor-1234 1538319053569-0
Result>(integer) 1
  • You can specify multiple IDs.

Syntax

XDEL key ID [ID ...]

  • Available since version 5.0.0.
  • Time complexity is O(log(N)), where N is the number of entries in the stream.
  • Returns the number of deleted IDs.

<< XREAD XDEL XDEL >>

Email 답글이 올라오면 이메일로 알려드리겠습니다.