RATELIMIT.DROP
RATELIMIT.DROP name
- Group
- Rate limiting
- Complexity
- O(N) where N is the number of tracked keys
- Arity
- 2 (exactly, counting the command name)
- Flags
- write, slow
- Keys
- first 1, last 1, step 1
- HotKV Cloud
- Performance and Scale
- On-Premise
- requires the rate-limiting license feature
Named rate limiters apply one policy (a limit, a window and an algorithm) separately to every key you check against them, such as a user id, an API key or an IP address. RATELIMIT.DROP deletes a limiter with all of its per-key state.
Return value
Section titled “Return value”| Case | RESP2 | RESP3 |
|---|---|---|
| Limiter deleted | Simple string OK |
Same |
Errors:
ERR limiter not foundif the limiter does not exist.ERR wrong number of arguments for 'ratelimit.drop' commandif the argument count is wrong.NOLICENSE rate-limiting requires a HotKV license. Contact sales@hotkv.comif your license does not include therate-limitingfeature.
Examples
Section titled “Examples”127.0.0.1:6379> RATELIMIT.DROP apiOK127.0.0.1:6379> RATELIMIT.DROP api(error) ERR limiter not foundCompatibility
Section titled “Compatibility”HotKV-only command. Redis and Valkey have no equivalent.
See also
Section titled “See also”RATELIMIT.CREATE, RATELIMIT.CHECK, RATELIMIT.PEEK, RATELIMIT.RESET, RATELIMIT.STATS, RATELIMIT.LIST, AI features guide
Was this page helpful?
Thanks for the feedback.