---
title: "FLUSHALL"
url: "https://docs.yugabyte.com/stable/yedis/api/flushall/"
---

# FLUSHALL

## Synopsis

**`FLUSHALL`**

This command deletes all keys from all databases.

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
$ FLUSHALL
```

```
"OK"
```

```sh
$ GET yuga1
```

```
(null)
```

```sh
$ GET yuga2
```

```
(null)
```

## See also

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