Iris.IfxLite.FilePurger.exe

Overview

Iris.IfxLite.FilePurger.exe is a command-line utility that helps manage disk space by removing old IRIS log files.

It optionally archives the logs before deletion, ensuring that you maintain historical records while reclaiming valuable disk space.

 

Key features

 

Prerequisites

 

Archiving

When archiving is enabled, the tool creates compressed files containing the old log files before deleting them.

The compressed files are created under "IRIS"\Logs\_ArchivedLogs\"Current_IRIS_Version"\Date_Time

 

Example path for archived logs:

"IRIS"\Logs\__ArchivedLogs\v25.1\20250120_111612\

 

Subsequent runs of the tool generate additional Date_Time folders under the same folder structure.

The archived logs can be moved to a backup location or deleted as required.

 

Important

 

Usage

From an elevated command prompt run "IRIS"\LogPurger\Iris.IfxLite.FilePurger.exe

Syntax:

Iris.IfxLite.FilePurger.exe [-h] [-mode=<mode>] [-purge] [-purge-no-backup] [-dry-run] [-before-days=<days>]

 

Options:

-h

    show this help message and exit.

-purge

    archive old log files into .zip archives, then delete the original files.

-purge-no-backup

    delete old log files without creating .zip archives.

-dry-run

    simulate the selected purge operation without making any changes. This is helpful for previewing which files would be archived and/or removed.

-mode=<mode>

    Specify the mode of operation.

The following modes are available:

If not specified, the default mode is 'full'.

-before-days=<days>

    Specify the age threshold (in days) that determines which logs are considered old and eligible for purging.

    If not specified, the default is 90 days.

 

Important note on operation election

One of -purge, -purge-no-backup, or -dry-run must be specified.

Examples:

  1. Display Help Information:
    Iris.IfxLite.FilePurger.exe -h
    Prints usage info and exits.
  2. Dry Run (No Changes):
    Iris.IfxLite.FilePurger.exe -dry-run -before-days=7
    Shows what would be purged if logs older than 7 days were targeted, but does not modify any files.
    Also displays a summary of the number of files and their sizes that would be archived and/or deleted.

  3. Purge With Backup (Default 90 Days):
    Iris.IfxLite.FilePurger.exe -purge
    Archives all log files older than 90 days into .zip files, then deletes the originals.
    Also displays a summary of the number of files and their sizes that have been archived and/or deleted.
  4. Purge Without Backup:
    Iris.IfxLite.FilePurger.exe -purge-no-backup -before-days=14
    Immediately deletes all log files older than 14 days without creating backups.
    Also displays a summary of the number of files and their sizes that have been archived and/or deleted.
  5. Specify Mode:
    Iris.IfxLite.FilePurger.exe -purge -mode=data_logs_only -before-days=60
    Purges data logs older than 60 days, archiving them first, in the specified "data_logs_only" mode.
    Also displays a summary of the number of files and their sizes that have been archived and/or deleted.