---
schema_version: "1"
id: 9f80f72aaf4b57a4cefb3fce13ece80d97cc8c489c46243d7b23d033cfd1cc73
title: DeleteData
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/marketing-cloud/guides/mc-programmatic-content/ssjs_platformDataExtensionDeleteData.md
canonical_url: https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/ssjs_platformDataExtensionDeleteData.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: b65c300c4780854a5299128737458f77ed8efdbf171295f1b0ee43be99a064a5
products:
  - Marketing Cloud Engagement APIs and Programmatic Languages
  - Marketing Cloud
---
# DeleteData

Deletes information from a data extension as indicated by the array containing the listed column name and value pairs. You can include multiple column name and value pairs in a single call. You can use this method in non-sending contexts, such as landing pages.

**note:** This function times out if it runs for too long. The maximum number of rows that you can delete depends on the size of the data extension, system load, and other factors. For large deletion requests, we recommend that you implement a batching process.

## Syntax

`Platform.Function.DeleteData(1, 2, 3)`

## Function Properties

| Ordinal | Type   | Description                                                                     |
| ------- | ------ | ------------------------------------------------------------------------------- |
| `1`     | String | Required. The name of data extension that contains the rows you want to delete. |
| `2`     | Array  | Required. The columns to search for the specified values.                       |
| `3`     | Array  | Required. The field values used to determine which rows to delete.              |

## Example

This example deletes all rows in the `MembershipRewards` data extension where the value in the `Area` column is `Kensington`.

```js
<script runat="server">
  var rows = Platform.Function.DeleteData('MembershipRewards',['Area'],['Kensington']);
</script>
<p>Rows deleted: <ctrl:var name="rows" /></p>
```

The only item in the response is the number of rows that were modified.
