DeleteData
Overview
Deletes rows in a data extension with column values specified in name value pairs. Returns the number of rows affected. You can also use this function with SMS data.Syntax
DeleteData(1, 2, 3)
| Ordinal | Type | Description | |
|---|---|---|---|
| 1 | string | Required | Name of data extension from which to delete specified row |
| 2 | string | Required | Name of column used to identify rows to delete. |
| 3 | string | Required | Value used to identify rows to delete. |
Usage
DeleteData('SendDE','_SubscriberKey','12345')
The system deletes rows in the SendDE data extension whose _SubscriberKey column contains the value 12345 and returns the number of rows that were deleted.