PROMPT.DROP
PROMPT.DROP name
- Group
- Prompt registry
- Complexity
- O(N) where N is the number of stored versions
- Arity
- 2 (exactly, counting the command name)
- Flags
- write, fast
- Keys
- first 1, last 1, step 1
- HotKV Cloud
- Performance and Scale
- On-Premise
- requires the prompt-registry license feature
The prompt registry stores versioned prompt templates by name, with one version marked active, so you can roll a prompt forward or back without deploying code. PROMPT.DROP deletes a template with every version. A later
PUT under the same name starts again at version 1.
Return value
Section titled “Return value”| Case | RESP2 | RESP3 |
|---|---|---|
| Template deleted | Integer 1 |
Same |
| No such template | Integer 0 |
Same |
Errors:
ERR wrong number of arguments for 'prompt.drop' commandif the argument count is wrong.NOLICENSE prompt-registry requires a HotKV license. Contact sales@hotkv.comif your license does not include theprompt-registryfeature.
Examples
Section titled “Examples”127.0.0.1:6379> PROMPT.DROP support-agent(integer) 1127.0.0.1:6379> PROMPT.DROP support-agent(integer) 0Compatibility
Section titled “Compatibility”HotKV-only command. Redis and Valkey have no equivalent.
See also
Section titled “See also”PROMPT.PUT, PROMPT.GET, PROMPT.LATEST, PROMPT.SETACTIVE, PROMPT.VERSIONS, PROMPT.LIST, AI features guide
Was this page helpful?
Thanks for the feedback.