Skip to content

Ask the HotKV docs

Answers come only from these docs and can be wrong; check the linked pages before you rely on them.

FUNCTION DELETE

Last updated
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.

Case RESP2 RESP3
Deleted Simple string OK Simple string OK
No such library Error ERR Library not found Error
127.0.0.1:6379> FUNCTION DELETE util
OK
127.0.0.1:6379> FUNCTION DELETE util
(error) ERR Library not found

Same as Redis 7 and Valkey 8.

FUNCTION LOAD, FUNCTION FLUSH, FUNCTION LIST