Skip to main content

Description

Removes the specified keys. A key is ignored if it does not exist.

Method Signature

Parameters

keys
string[]
required
One or more keys to delete

Return Value

result
number
The number of keys that were removed

Examples

Delete a single key

Delete multiple keys

Delete non-existent keys

See Also

  • exists - Check if keys exist