# ORMClearSession()

Removes all the entities that are loaded or created in the session.

This clears the first level cache and removes the objects that are not yet saved to the database.

```
ORMClearSession( datasource=string );
```

**Returns:** void

# Arguments

| Argument | Type | Required | Description | Default |
|----------|------|----------|-------------|---------|
| datasource | string | No | datasource used for the session, if nor defined the datasource defined in application.cfc/cfapplication is used. |  |

# Examples

*There are currently no examples for this function.*







# Categories

[ORM](../../categories/orm.md)