Overview
Data retention may not be working properly and may need to be manually purged. This article provides step-by-step instruction on how to run retention rules manually.
Steps
To run retention manually:
-
Identify the rule to run and the timestamp:
-
Open
GFI\Archiver\Core\Data\marcsettings.xml
-
Search for retention.
-
For example in this particular case.
-
<Rule Guid="bb2c2b72-1470-4649-86e7-f4388f9764ca" Enabled="true">
-
<Description>Delete - Notification of Estimated Delivery - emails after 90 days</Description>
-
<Action Type="Delete" Db="" TagValue="" RetentionPeriod="90" RetentionVersions="0" />
-
-
-
In SQL, open a query for the respective store and run the command:
-
dbo.RemoveEmailMessages @archiveDate='<EmailsOlderThanThisDateToRemove>',@ruleGuid='<ruleId>'
- Example:
dbo.RemoveEmailMessages @archiveDate='2019-04-17 00:00:00',@ruleGuid='bb2c2b72-1470-4649-86e7-f4388f9764ca'
-
Example:
Related Articles
Emails Not Deleting Instantly After Running Retroactive Retention
Creating a New Email Retention Policy