# clearCachedDatabase {#clearcacheddatabase}

## Syntax {#syntax}

`clearCachedDatabase(dbUrl, [tableName])`

## Arguments {#arguments}

**dbUrl** is a string indicating the path to a DFS database.

**tableName** \(optional\) is a string indicating the table name. It can be a dimension table or DFS partitionted table.

## Details {#details}

Clears the cached tables in memory loaded from a DFS database. You can check the memory usage with function [getSessionMemoryStat](../g/getSessionMemoryStat.md).

