# LLMSTATS.RESET

> Zero every counter of an LLM usage stats bucket but keep the bucket.

URL: https://docs.hotkv.com/commands/llmstats-reset/

```
LLMSTATS.RESET name
```

- Group: LLM usage and budgets
- Complexity: O(1)
- HotKV Cloud: Performance and Scale plans
- On-Premise: requires the llm-stats license feature

LLM usage stats keep running totals of the requests, tokens, cost and latency of your model calls in named buckets, for example one per tenant or per model. `LLMSTATS.RESET` sets all of a bucket's totals and its last-minute
window back to zero. The bucket itself stays. To remove it, use
[LLMSTATS.DROP](https://docs.hotkv.com/commands/llmstats-drop/index.md).

## Return value

| Case | RESP2 | RESP3 |
| --- | --- | --- |
| Bucket reset | Integer `1` | Same |
| No such bucket | Integer `0` | Same |

Errors:

- `ERR wrong number of arguments for 'llmstats.reset' command` if the argument count is wrong.
- `NOLICENSE llm-stats requires a HotKV license. Contact sales@hotkv.com` if your license does not include the `llm-stats` feature.

## Examples

```
127.0.0.1:6379> LLMSTATS.RESET tenant_acme
(integer) 1
127.0.0.1:6379> LLMSTATS.RESET missing
(integer) 0
```

## Compatibility

HotKV-only command. Redis and Valkey have no equivalent.

## See also

[LLMSTATS.BUCKET](https://docs.hotkv.com/commands/llmstats-bucket/index.md), [LLMSTATS.RECORD](https://docs.hotkv.com/commands/llmstats-record/index.md), [LLMSTATS.GET](https://docs.hotkv.com/commands/llmstats-get/index.md), [LLMSTATS.DROP](https://docs.hotkv.com/commands/llmstats-drop/index.md), [LLMSTATS.LIST](https://docs.hotkv.com/commands/llmstats-list/index.md), [LLMSTATS.PRICE](https://docs.hotkv.com/commands/llmstats-price/index.md), [AI features guide](https://docs.hotkv.com/ai-features/index.md)