FUNCTION DELETE
FUNCTION DELETE library-name
- Group
- Scripting and functions
- Complexity
- O(1)
- Arity
- 3 (exactly, counting the command name)
- HotKV Cloud
- All plans
- On-Premise
- no license needed
FUNCTION DELETE removes the named library and every function it registered.
The library name must match exactly, including case. The change is persisted
and replicated.
Return value
Section titled “Return value”| Case | RESP2 | RESP3 |
|---|---|---|
| Deleted | Simple string OK |
Simple string OK |
| No such library | Error ERR Library not found |
Error |
Examples
Section titled “Examples”127.0.0.1:6379> FUNCTION DELETE utilOK127.0.0.1:6379> FUNCTION DELETE util(error) ERR Library not foundCompatibility
Section titled “Compatibility”Same as Redis 7 and Valkey 8.
See also
Section titled “See also”Was this page helpful?
Thanks for the feedback.