Skip to main content

UNLINK

Syntax

UNLINK key [key ...]

Time complexity: O(N) where N is the number of keys that will be removed.

ACL categories: @keyspace, @write, @fast

This command is equivalent to DEL command, see DEL for more information.

Return

Integer reply: The number of keys that were unlinked.

Examples

dragonfly> SET key1 "Hello"
OK
dragonfly> SET key2 "World"
OK
dragonfly> UNLINK key1 key2 key3
(integer) 2