Change the Retention Period for a Data Extension

The data extension retention date determines when data extensions are deleted. To make room for more data, you can change the retention date. For example, if you currently keep your data for 30 days, you can change the retention period to seven days to clear the data more quickly. Call the data extension by Name or ObjectID.

You can update the data extension retention period that is specified in these properties:

  • DataRetentionPeriodLength
  • ResetRetentionPeriodOnImport
  • DeleteAtEndofRetentionPeriod
  • RetainUntil
  • DataRetentionPeriod You can't update RowBasedRetention.

Sample SOAP Request to Set Length of Data Retention Period

Sample SOAP Response to Set Length of Data Retention Period

Sample SOAP Request to Set End of Data Retention Period

Sample SOAP Response to Set End of Data Retention Period