> ## Documentation index
> Fetch the complete documentation index at: https://upstash.com/docs/llms.txt
> Search it with GET https://upstash.com/docs/search?q=<query>.
> Use these to discover all available pages before exploring further.

# ZPOPMIN

> 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>
