What's new in Valkey 9.0? Discover new features and improvements. Read the announcement.

FUNCTION FLUSH

Deletes all libraries and functions.

Usage
FUNCTION FLUSH [flush-type]
Complexity
O(N) where N is the number of functions deleted
Since
7.0.0
ACL Categories
@scripting, @slow, @write
Command flags
NOSCRIPT, WRITE

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:

  • ASYNC: Asynchronously flush the libraries.
  • !SYNC: Synchronously flush the libraries.

For more information please refer to Introduction to Valkey Functions.

Replies

RESP2

RESP3