FUNCTION FLUSH · Valkey

FUNCTION FLUSH

Deletes all libraries and functions.

Usage

FUNCTION FLUSH [ASYNC | SYNC]

Description

Deletes all the libraries.

Unless called with the optional mode argument, the lazyfree-lazy-user-flush configuration directive sets the effective behavior. Valid modes are:

For more information please refer to Introduction to Valkey Functions.

Reply

Simple string reply: OK.

Complexity

O(N) where N is the number of functions deleted

ACL Categories

@scripting

History

See also

EVAL, EVALSHA, EVALSHA_RO, EVAL_RO, FCALL, FCALL_RO, FUNCTION, FUNCTION DELETE, FUNCTION DUMP, FUNCTION HELP, FUNCTION KILL, FUNCTION LIST, FUNCTION LOAD, FUNCTION RESTORE, FUNCTION STATS, SCRIPT, SCRIPT DEBUG, SCRIPT EXISTS, SCRIPT FLUSH, SCRIPT HELP, SCRIPT KILL, SCRIPT LOAD.