FUNCTION DELETE
FUNCTION DELETE library-name
- Available since
- 7.0.0
- Time complexity
- O(1)
- ACL categories
- @write, @slow, @scripting
Delete a library and all its functions.
This command deletes the library called library-name and all functions in it. If the library doesn’t exist, the server returns an error.
For more information please refer to Introduction to Redict Functions.
Examples #
redict> FUNCTION LOAD "#!lua name=mylib \n redict.register_function('myfunc', function(keys, args) return 'hello' end)"
"mylib"
redict> FCALL myfunc 0
"hello"
redict> FUNCTION DELETE mylib
OK
redict> FCALL myfunc 0
(error) ERR Function not found