# CacheDelete()

Deletes a single element from the cache.

```
CacheDelete( id=object, throwOnError=boolean, cacheName=string );
```

**Returns:** void

# Arguments

| Argument | Type | Required | Description | Default |
|----------|------|----------|-------------|---------|
| id | object | Yes | the id of the element to delete, can also contain a "," (not used as separator) *Alias: name, key* |  |
| throwOnError | boolean | No | define if the functions throws an exception when the element does not exist. Default is false. |  |
| cacheName | string | No | definition of the cache used by name, when not set the "default Object Cache" defined in Lucee Administrator is used instead. *Alias: cache, region* |  |

# Examples

*There are currently no examples for this function.*







# Categories

[Cache](../../categories/cache.md)