Hdel

From Scriptwiki
Jump to: navigation, search

Deletes an item from a hash table.

/hdel -sw <name> <item>

The -w switch indicates that item is a wildcard, all matching items are freed.

Using the -s switch makes the command disply the result (e.g. * Deleted item 'Dana' from hash table 'users')

Example

hdel users Dana

This example would delete the item called "Dana" from hash table users.

hdel -w users *

This example would delete all items from the hashtable users.