FUNCTION-FLUSH(3valkey)
๐ FUNCTION-FLUSH โ the Valkey glow-up page ๐
okay bestie, you're reading the manual for FUNCTION-FLUSH(3valkey), straight out of the Valkey Command Manual. this is the one that hits the big red button on your functions. let's get into it ๐ซถ
โจ NAME โจ
function-flush โ deletes all libraries and functions. all of them. every single one. the whole collection. ๐
๐ธ SYNOPSIS ๐ธ
FUNCTION FLUSH [ASYNC | SYNC]
๐ฆ DESCRIPTION ๐ฆ
so basically: this nukes all the libraries. gone. poof. โจ
unless you pass the optional mode argument, the lazyfree-lazy-user-flush configuration directive is the one calling the shots and decides what actually happens. the valid modes are:
ASYNCโ flush the libraries asynchronously. it's giving "yeah I'll get to it" ๐ซงSYNCโ flush the libraries synchronously. it's giving "no, we do it right now, together" ๐ฅ
want the full lore? go read valkey-functions-intro(7), Introduction to Valkey Functions. it's the prequel, iykyk ๐
๐ REPLY ๐
per valkey-protocol(7), you get a Simple string reply: OK.
that's it. that's the reply. short, sweet, iconic. ๐
๐ COMPLEXITY ๐
O(N) where N is the number of functions deleted.
so yeah, the more functions you're deleting, the longer it takes. math is math. ๐งฎ
๐ ACL CATEGORIES ๐
@scripting@slow@write
โญ HISTORY โญ
- Available since: 7.0.0
๐ SEE ALSO ๐
eval(3valkey)evalsha(3valkey)evalsha_ro(3valkey)eval_ro(3valkey)fcall(3valkey)fcall_ro(3valkey)function(3valkey)function-delete(3valkey)function-dump(3valkey)function-help(3valkey)function-kill(3valkey)function-list(3valkey)function-load(3valkey)function-restore(3valkey)function-stats(3valkey)script(3valkey)script-debug(3valkey)script-exists(3valkey)script-flush(3valkey)script-help(3valkey)script-kill(3valkey)script-load(3valkey)script-show(3valkey)
and that's the whole page, bestie ๐ this one's from Valkey 9.0.0, dated 2025-10-21, filed under FUNCTION-FLUSH(3valkey) โ go forth and flush responsibly, mwah ๐โจ
๐ฆ where this page comes from
- fedora 44: valkey-doc 9.0.3-2.fc44 ยท CC-BY-SA-4.0
- fedora 44: valkey-doc 9.0.6-1.fc44 ยท CC-BY-SA-4.0
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms