Back to Yugabyte Db

DELETEDB

docs/content/stable/yedis/api/deletedb.md

2026.1.0.0-b25655 B
Original Source

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

sh
$ LISTDB
1) "0"
sh
$ CREATEDB "second"
"OK"
sh
$ CREATEDB "3.0"
"OK"
sh
$ LISTDB
1) "0"
2) "3.0"
3) "second"
sh
$ DELETEDB "3.0"
"OK"
sh
$ LISTDB
1) "0"
2) "second"

See also

createdb listdb deletedb flushdb flushall select