> For the complete documentation index, see [llms.txt](https://docs.emobiq.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.emobiq.com/emobiq-client/006-actions-and-visual-logic/action-reference/cordova/dataset/clearalldata.md).

# clearAllData

## Description

Removes all the local tables in a project, excluding the datasets specified.

## Input / Parameter

| Name   | Description                              | Input Type  | Default | Options | Required |
| ------ | ---------------------------------------- | ----------- | ------- | ------- | -------- |
| except | The datasets that should not be removed. | String/Text | -       | -       | No       |

## Output

N/A

## Callback

N/A

## Video

Coming Soon.

## Example

The user wants to delete all the dataset in a project.

### Step

1. Call the function.

   ![](/files/kplIqI1YScvPS5LFXp6Z)

### Result

![](/files/BGrPhbSq47stxUtHKegl)

Before calling the function `clearAllData`, the L\_customer and l\_cart both exist as local tables.

![](/files/ty8dUdo4l1NzizJMwCVV)

![](/files/Q6AwnWNZuQ1i1TsBv3ic)

After calling the `clearAllData`, both tables have been removed.

## Links
