Arguments
string
required
The key of the stream.
string | string[]
required
The ID(s) of the message(s) to delete. Can be a single ID or an array of IDs.
Response
The number of entries actually deleted from the stream.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
const result = await redis.xdel("mystream", "1638360173533-0");
const result = await redis.xdel("mystream", [
"1638360173533-0",
"1638360173533-1",
"1638360173533-2"
]);
Removes the specified entries from a stream, and returns the number of entries deleted.
const result = await redis.xdel("mystream", "1638360173533-0");
const result = await redis.xdel("mystream", [
"1638360173533-0",
"1638360173533-1",
"1638360173533-2"
]);
Was this page helpful?