# 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.

   ![](https://399701567-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwmJ1RKjM2uNFaL6fO3Xu%2Fuploads%2Fgit-blob-7aa910d100c2fecad44eb3cbe0ebcfb4c63fc27a%2FclearAllData-step-1.png?alt=media)

### Result

![](https://399701567-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwmJ1RKjM2uNFaL6fO3Xu%2Fuploads%2Fgit-blob-b4c05cd4ff819d650489a0e1d02fd10aa3ac1ac0%2FclearAllData-result-1.png?alt=media)

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

![](https://399701567-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwmJ1RKjM2uNFaL6fO3Xu%2Fuploads%2Fgit-blob-7f8de7958d65923beaaafe3eaff9a9859f02ca67%2FclearAllData-result-2.png?alt=media)

![](https://399701567-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwmJ1RKjM2uNFaL6fO3Xu%2Fuploads%2Fgit-blob-68582f9fcf4f29f27059a1530a99f8d168344d5c%2FclearAllData-result-3.png?alt=media)

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

## Links
