DeleteDE

Overview

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.

Syntax

DeleteDE(1, 2, 3)

Function Properties

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

Example

This example deletes the rows from the data extension with the LastName value of Smith.

<script runat="server">
     var rows = Platform.Function.DeleteDE('CustomerData',['LastName'],['Smith']);
</script>
Last Updated: Jun 8, 2021