> 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/deletebymulti.md).

# deleteByMulti

## Description

Removes specified records from multiple fields in a dataset.

## Input / Parameter

| Name     | Description                                             | Input Type  | Default | Options | Required |
| -------- | ------------------------------------------------------- | ----------- | ------- | ------- | -------- |
| dataset  | The name of the local table to remove the records from. | String/Text | -       | -       | Yes      |
| first?   | ?                                                       | String/Text | -       | -       | No       |
| filter   | The filters for the field and value to remove.          | Array/List  | -       | -       | Yes      |
| orFilter | Additional filters for the field and value to remove.   | Array/List  | -       | -       | No       |
| extra    | Extra parameters stored and passed to callback.         | Any         | -       | -       | No       |

## Output

| Description                                | Output Type |
| ------------------------------------------ | ----------- |
| Returns the updated local table as a list. | Array/List  |

## Callback?

### callback

The function to be executed if the specified records are removed successfully.

### errorCallback

The function to be executed if the specified records are not removed successfully.

## Video

Coming Soon.

## Example

The user wants to delete the field id=25 and name=ABC from dataset "l\_customer".

### Step

1. Call the function "deleteByMulti" and define the dataset.\
   dataset: l\_customer<br>

   ![](https://399701567-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwmJ1RKjM2uNFaL6fO3Xu%2Fuploads%2Fgit-blob-14e45a0cf79c8944e5f71414702abb06fa9929ae%2FdeleteByMulti-step-1.png?alt=media)
2. Set toArray and toObject function to filter and define the value of object.\
   filter: toArray --> toObject\
   id: 25\
   name: A1A2A3A4<br>

   ![](https://399701567-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwmJ1RKjM2uNFaL6fO3Xu%2Fuploads%2Fgit-blob-54082627f48503e3e4740a88b887954ab4e30c47%2FdeleteByMulti-step-2.png?alt=media) ![](https://399701567-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwmJ1RKjM2uNFaL6fO3Xu%2Fuploads%2Fgit-blob-745896709ea43ff5fc9934e5cdd1338eecc443ca%2FdeleteByMulti-step-3.png?alt=media) ![](https://399701567-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwmJ1RKjM2uNFaL6fO3Xu%2Fuploads%2Fgit-blob-e24c8234efa028cec53a057769c9de6b446ddbaa%2FdeleteByMulti-step-4.png?alt=media)

### Result

![](https://399701567-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwmJ1RKjM2uNFaL6fO3Xu%2Fuploads%2Fgit-blob-27e2c1c9f966a901e607572b5b7846b73116a036%2FdeleteByMulti-result-1.png?alt=media) ( Before delete, the id=25; name= A1A2A3A4 is still store in the local table. )

![](https://399701567-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwmJ1RKjM2uNFaL6fO3Xu%2Fuploads%2Fgit-blob-ace773af735225af1f60ef8e3dc598d705edb13a%2FdeleteByMulti-result-2.png?alt=media) ( After delete, id=25; name= A1A2A3A4 was removed in local table.)

## Links
