DELETEDB

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

Synopsis

DELETEDB is used to delete a yedis database that is no longer needed.

A client can issue the DELETEDB command through the redis-cli.

Return Value

Returns a status string upon success.

Examples

You can do this as shown below.


1. $ LISTDB


1. 1) "0"


1. $ CREATEDB "second"


1. "OK"


1. $ CREATEDB "3.0"


1. "OK"


1. $ LISTDB


1. 1) "0"
2. 2) "3.0"
3. 3) "second"


1. $ DELETEDB "3.0"


1. "OK"


1. $ LISTDB


1. 1) "0"
2. 2) "second"

See Also

createdblistdbdeletedbflushdbflushallselect