# ormIndexPurge

Clears all indexed data for all entities or specified entities in the current application scope.




### Syntax

```
ormIndexPurge(); ormIndexPurge("entityName"); ormIndexPurge("entityName_list"); returns void
```






## Argument Reference

| Name | Type | Required | Default | Description | Values |
| --- | --- | --- | --- | --- | --- |
| region | string | Yes |  | Name of the cache region. |  |





## CFML Engine Support

The ormIndexPurge function is supported on the following CFML engines:

| Engine | Minimum Version | Notes |
| --- | --- | --- |
| ColdFusion | 10 |  |




## Examples


### Tag Syntax

If you use this function without specifying entityName, all persistent entities of the application are purged.

```
ormIndexPurge(); 

```



### Tag Syntax



```
ormIndexPurge('Employee'); 

```








The human version of this document can be found here: [https://cfdocs.org/ormindexpurge](https://cfdocs.org/ormindexpurge) which is part of the cfdocs.org repository. Project created by [Pete Freitag](https://www.petefreitag.com) and sponsored by [Foundeo Inc.](https://foundeo.com/)
