Retention Policies

Retention policies in Leapwork help manage the increasing volume of data generated by automation flows, ensuring optimal use of disk space on the Controller machine.

Note:  These settings are only available when logged in as an administrator.

Scheduled Runs Policy

This policy applies to flows executed via schedules. Administrators can define how long results and videos from scheduled flows should be retained. The available settings allow you to manage retention in the following ways:

  • By Days: Specify how many days flow results should be retained.
  • By Number of Runs: Limit the total number of flow results stored in the system.

When selected, the Remove success run videos after 1 hour checkbox automatically deletes videos of successful scheduled runs one hour after completion, optimising disk space usage.

Recommendation: Configure retention policies based on the frequency of your automation runs to balance storage use and data availability.

Preview Runs Policy

This option is specifically designed for flows executed manually, without an initial schedule. This allows administrators to manage the retention of video recordings for these on-the-spot runs independently of scheduled runs.

The behavior of Preview Runs depends on whether the Use Schedule Settings checkbox is selected:

  • Checked: The retention settings for Preview Runs will inherit the configurations defined for Scheduled Runs.
  • Unchecked: You can configure separate retention settings for Preview Runs, but the options available (e.g., number of days or total results retained, remove success run videos after 1 hour checkbox) are the same as those for Scheduled Runs.

Recommendation: Retain videos of failed runs for debugging and analysis while deleting successful run videos quickly.

Temp Folder Policy

This section allows users to define how long assets in the temporary folder should be retained. It helps maintain control over temporary files and optimizes storage. The retention period can be set between 1 and 90 days.

Recommendation: Regularly review and adjust this setting to avoid unnecessary storage of outdated temporary files and maintain optimal disk space usage.