---
url: /process-functions/mapping-delete.md
description: Deletes a mapping.
---

# mapping.delete

Deletes a mapping and all its rows. To keep the mapping and remove its rows, use [mapping.wipe](/process-functions/mapping-wipe).

```js
mapping.delete(mappingName)
```

## Parameters

| Parameter | Type | Description |
|---|---|---|
| `mappingName` | `string` | The mapping's name or id. |

## Returns

`true` if the mapping was deleted, otherwise `false`.

## Examples

```js
const res = mapping.delete("Time to Year and Month");
```

## Related

* [mapping.wipe](/process-functions/mapping-wipe)
* [mapping.exists](/process-functions/mapping-exists)
