> For the complete documentation index, see [llms.txt](https://aeudoc.gitbook.io/developer/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://aeudoc.gitbook.io/developer/presentation/client-script/delete-action.md).

# Delete Action

## Syntax

```
$.deleteAction = function (url, callback)
```

## Arguments

<table data-header-hidden><thead><tr><th width="151">Argument</th><th width="128">Data Type</th><th width="321">Description</th><th>Default Value</th></tr></thead><tbody><tr><td><p><em>url</em></p><p> </p></td><td>String</td><td>URI of the action whose content should be deleted.</td><td> </td></tr><tr><td><p><em>callback</em></p><p> </p></td><td>function</td><td><p>Contains calls of Javascript functions that should be executed in series after receiving data from action specified in “url”.</p><p> </p></td><td> </td></tr></tbody></table>

## Description

Sends an HTTPPUT request to the action of the URI specified in “url”. If it successfully receives return data from the Server, the callback function will be executed. It should be used when the action of the URI deletes data from the database.

## Example

The following program illustrates the function call:

```
$.deleteAction("main/delete" + 1234, function () { alert("success"); }) 
```

Function sends request to the action “main/delete” along with the parameter of the action set to 1234 (specifying the data to be deleted). When the function receives returned data from the Server, the “alert” function will output “success” on the screen.
