---
title: "DELETEDB"
url: "https://docs.yugabyte.com/stable/yedis/api/deletedb/"
---

# DELETEDB

## 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`](/stable/yedis/api/createdb/ "createdb") [`listdb`](/stable/yedis/api/listdb/ "listdb") [`deletedb`](/stable/yedis/api/deletedb/ "deletedb") [`flushdb`](/stable/yedis/api/flushdb/ "flushdb") [`flushall`](/stable/yedis/api/flushall/ "flushall") [`select`](/stable/yedis/api/select/ "select")
