AMPscript
DeleteData
DeleteDE
InsertData
InsertDE
Lookup
LookupOrderedRows
LookupRows
UpdateData
UpdateDE
UpsertData
UpsertDE
Validate Your Server-Side JavaScript using WSProxy
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 sendable contexts, such as email messages.
Platform.Function.DeleteDE(1, 2, 3)
| Ordinal | Type | Description |
|---|---|---|
1 | string | Required. Name of data extension |
2 | array | Required. Names of columns from data extension |
3 | array | Required. Names of values in data extension |
This example deletes the rows from the data extension where the value of LastName is Smith.
1<script runat="server">
2 var rows = Platform.Function.DeleteDE('CustomerData',['LastName'],['Smith']);
3</script>