FLUSHALL

AttentionThis page documents an earlier version. Go to the latest (v2.1)version.

Synopsis

FLUSHALLThis command deletes all keys from all databases.

Return Value

Returns status string.

Examples

You can do this as shown below.

  1. $ SET yuga1 "America"
  1. "OK"
  1. $ SET yuga2 "Africa"
  1. "OK"
  1. $ GET yuga1
  1. "America"
  1. $ GET yuga2
  1. "Africa"
  1. $ FLUSHALL
  1. "OK"
  1. $ GET yuga1
  1. (null)
  1. $ GET yuga2
  1. (null)

See Also

del, flushdb