# XDEL

> Removes the specified entries from a stream, and returns the number of entries deleted.

## Arguments

<ParamField body="key" type="string" required>
  The key of the stream.
</ParamField>

<ParamField body="ids" type="string | string[]" required>
  The ID(s) of the message(s) to delete. Can be a single ID or an array of IDs.
</ParamField>

## Response

<ResponseField type="number">
  The number of entries actually deleted from the stream.
</ResponseField>

<RequestExample>
```ts Single message
const result = await redis.xdel("mystream", "1638360173533-0");
```

```ts Multiple messages
const result = await redis.xdel("mystream", [
  "1638360173533-0",
  "1638360173533-1",
  "1638360173533-2"
]);
```
</RequestExample>
