# ee.data.deleteAsset

<br />

Deletes the asset with the given id.

<br />

| Usage | Returns |
|---|---|
| `ee.data.deleteAsset(assetId, *callback*)` |   |

| Argument | Type | Details |
|---|---|---|
| `assetId` | String | The ID of the asset to delete. |
| `callback` | Function, optional | An optional callback. If not supplied, the call is made synchronously. The callback is passed an empty object and an error message, if any. |