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

MODULE UNLOAD

Unloads a module.

Usage
MODULE UNLOAD name
Complexity
O(1)
Since
4.0.0
ACL Categories
@admin, @dangerous, @slow
Command flags
NO_ASYNC_LOADING, ADMIN, NOSCRIPT, PROTECTED

Unloads a module.

This command unloads the module specified by name. Note that the module's name is reported by the MODULE LIST command, and may differ from the dynamic library's filename.

Known limitations:

  • Modules that register custom data types can not be unloaded.

Replies

RESP2

Simple string reply: OK if the module was unloaded.

RESP3

Simple string reply: OK if the module was unloaded.