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

# deleteData

## Description

Delete a record from a staging database.

## Input / Parameters

| No | Name    | Description                                                                         | Data Type | Required |
| -- | ------- | ----------------------------------------------------------------------------------- | --------- | -------- |
| 1  | dataset | Name of the dataset in staging table which will be deleted.                         | String    | Yes      |
| 2  | \_id    | Value from the staging database and used for identify which record will be updated. | Integer   | Yes      |

## Output

## Callback

## Video

## Example

The user wants to delete the data from staging table.

### Step

1. Create a table with a table name and fields in staging table and create a dataset in Services. (We assumed that the table , fields and dataset have been created.)\
   table name: customer\
   Fields name: tel, name and add\
   Dataset: customer\_1\
   Set value: tel:34345678, name: 111, add:abc<br>

   ![](/files/zQeCZ8xw6hCWNQbYnp5X)
2. Call the function "deleteData", define the dataset and id.\
   dataset: customer\_1\
   \_id: 10<br>

   ![](/files/tZx35dnbDwzDXLv88wQn)
3. Call the function "loadData" and set the dataset.\
   dataset: customer\_1<br>

   ![](/files/pfV6uZeDf4hsVt2UELC0)
4. Add a console after callback for display the response from console.

   ![](/files/oT7RCLGWCYVh2iS22qBD)

### Result

![](/files/lkfWbJdjIcSK4ebAcuSf)

![](/files/upbkU4FS1lgnqgMS8OhA)\
( The result display in editor.)

![](/files/WcOaKjsTjovs5ecGrMef) ( The row for tel:34345678, name: 111, add:abc have been remove successfully.)

## Links
