---
title: "DEL"
url: "https://docs.yugabyte.com/stable/yedis/api/del/"
---

# DEL

Single-key request only. Requests with multiple keys are not yet supported.

## Synopsis

**`DEL key`**

This command deletes the given `key`.

- If the `key` does not exist, it is ignored and not counted toward the total number of removed keys.

## Return value

Returns number of keys that were removed.

## Examples

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

```
"OK"
```

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

```
"OK"
```

```sh
$ DEL yuga1
```

```
1
```

```sh
$ DEL not_a_key
```

```
0
```

```sh
$ DEL yuga1 yuga2
```

```
"ERR del: Wrong number of arguments"
```

## See also

[`exists`](/stable/yedis/api/exists/ "exists"), [`flushall`](/stable/yedis/api/flushall/ "flushall"), [`flushdb`](/stable/yedis/api/flushdb/ "flushdb"), [`get`](/stable/yedis/api/get/ "get"), [`getrange`](/stable/yedis/api/getrange/ "getrange"), [`hdel`](/stable/yedis/api/hdel/ "hdel"), [`hexists`](/stable/yedis/api/hexists/ "hexists"), [`hget`](/stable/yedis/api/hget/ "hget"), [`hset`](/stable/yedis/api/hset/ "hset"), [`hincrby`](/stable/yedis/api/hincrby/ "hincrby"), [`sadd`](/stable/yedis/api/sadd/ "sadd"), [`set`](/stable/yedis/api/set/ "set")
