> ## Documentation Index
> Fetch the complete documentation index at: https://mintlify.com/upstash/redis-js/llms.txt
> Use this file to discover all available pages before exploring further.

# del

> Delete one or more keys

## Description

Removes the specified keys. A key is ignored if it does not exist.

## Method Signature

```typescript theme={null}
del(...keys: string[]): Promise<number>
```

## Parameters

<ParamField path="keys" type="string[]" required>
  One or more keys to delete
</ParamField>

## Return Value

<ResponseField name="result" type="number">
  The number of keys that were removed
</ResponseField>

## Examples

### Delete a single key

```typescript theme={null}
await redis.set("mykey", "value");
const deleted = await redis.del("mykey");
console.log(deleted); // 1
```

### Delete multiple keys

```typescript theme={null}
await redis.set("key1", "value1");
await redis.set("key2", "value2");
await redis.set("key3", "value3");

const deleted = await redis.del("key1", "key2", "key3");
console.log(deleted); // 3
```

### Delete non-existent keys

```typescript theme={null}
const deleted = await redis.del("nonexistent");
console.log(deleted); // 0
```

## See Also

* [exists](/api/commands/exists) - Check if keys exist
