---
title: "FLUSHDB"
url: "https://docs.yugabyte.com/stable/yedis/api/flushdb/"
---

# FLUSHDB

## Synopsis

**`FLUSHDB`**

This command deletes all keys from a database.

This functionality can be disabled by setting the yb-tserver `--yedis_enable_flush` flag to `false`.

## Return value

Returns status string.

## Examples

```sh
$ SET yuga1 "America"
```

```
"OK"
```

```sh
$ SET yuga2 "Africa"
```

```
"OK"
```

```sh
$ GET yuga1
```

```
"America"
```

```sh
$ GET yuga2
```

```
"Africa"
```

```sh
$ FLUSHDB
```

```
"OK"
```

```sh
$ GET yuga1
```

```
(null)
```

```sh
$ GET yuga2
```

```
(null)
```

## See also

[`del`](/stable/yedis/api/del/ "del"), [`flushall`](/stable/yedis/api/flushall/ "flushall"),[`deletedb`](/stable/yedis/api/deletedb/ "deletedb")
