Skip to content
masterclass Buddy

Upstash · Method

ratelimit.resetUsedTokens

resetUsedTokens clears the rate-limit state for one identifier. Use it when that identifier should start with fresh limiter state.

Last updated

Syntax

ratelimit.resetUsedTokens(identifier: string): Promise<void>

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • limit
  • blockUntilReady
  • getRemaining
  • Ratelimit.slidingWindow
  • Ratelimit.tokenBucket
  • Ratelimit.fixedWindow

Source: Methods - Upstash Documentation. Checked 2026-11-03.