Start a conversation

Manually Running Retention Rules

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:

  1. Identify the rule to run and the timestamp:

    1. Open GFI\Archiver\Core\Data\marcsettings.xml

    2. Search for retention.

    3. 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" />
  2. 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:
052.png

 

Related Articles

Emails Not Deleting Instantly After Running Retroactive Retention

Creating a New Email Retention Policy

How are Retention Policies applied in GFI Archiver?

Retroactive Retention Not Updating Logs

Choose files or drag and drop files
Was this article helpful?
Yes
No
  1. Priyanka Bhotika

  2. Posted
  3. Updated

Comments