# CacheClear()

Flushes a cache

```
CacheClear( filterOrTags=any, cacheName=string );
```

**Returns:** number

# Arguments

| Argument | Type | Required | Description | Default |
|----------|------|----------|-------------|---------|
| filterOrTags | any | No | You can define 2 different things here: 1. a String containing a key filter for the elements in the cache to flush, the filter follow the same rules as for [<cfdirectory>](../tags/directory.md)-filter. 2. an Array containing tags defined when put the element to the cache *Alias: filter, tags, tag* |  |
| 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)

# See Also

[SystemCacheClear()](systemcacheclear.md)