---
title: ZPOPMIN
description: Removes and returns up to count members with the lowest scores in the sorted set stored at key.
---


## Arguments 

<ParamField body="key" type="string" required>
  The key of the sorted set
</ParamField>

## Response

<ResponseField body="count" type="integer">
    The number of elements removed. Defaults to 1.
</ResponseField>



<RequestExample>
```ts Example
const popped = await redis.zpopmin("key", 4);
```
</RequestExample>
