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.

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.

DeleteData(1, 2, 3)

OrdinalTypeDescription
1StringRequired. The name of data extension that contains the rows you want to delete.
2ArrayRequired. The columns to search for the specified values.
3ArrayRequired. The field values used to determine which rows to delete.

This example deletes all rows in the MembershipRewards data extension where the value in the Area column is Kensington.

The only item in the response is the number of rows that were modified.