---
title: "Delete Historical Versions of File Field Rule"
slug: "delete-historical-versions-of-file-field-rule"
updated: 2025-08-23T13:15:51Z
published: 2025-08-23T13:15:51Z
canonical: "documentation.encodify.com/delete-historical-versions-of-file-field-rule"
---

> ## Documentation Index
> Fetch the complete documentation index at: https://documentation.encodify.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete Historical Versions of File Field Rule

## Overview

---

The **Delete Historical Versions of File Field**automation rule helps you manage storage by automatically deleting previous file versions while retaining the latest version.

## How to create the rule

---

> [!WARNING]
> **Important:** Before configuring the Delete Historical Versions of File Field automation rule, ensure the following prerequisites are met:
> 
> - The file field is Universal File Field.
> - *Version control* is enabled for the module and selected File field.
> - The module includes a *configured workflow* with transitions to which the rule can be assigned.

### **Rule Configuration**

To configure automation rule, follow these steps:

1. Navigate to**Automation Rules** (see [Automation Rules Overview](/v1/docs/automation-rules-overview) for more details)
2. Click the**Add Rule**button
3. Complete the **Basic Info** section:
  1. Enter a **Name** and, optionally, a **Description**.
  2. From the *Type* dropdown, select **Delete Historical Versions of File Field**.
4. In the **Conditions**section, select a **Module.** If needed, specify **Filter Criteria**to configure the conditions that will trigger the rule.
5. Configure **Actions**
  1. Select the**File Field(s)** from which historical (previous) versions should be deleted.
6. Click **Save** to confirm your settings and create a rule.

![](https://cdn.document360.io/3a63e0a8-1221-4570-aaa1-d43f9b95a612/Images/Documentation/image(132).png)

### **Configuration of Workflow**

1. Go to **Site Configuration → {Module} → Workflow**
2. Locate the workflow transition that should trigger the rule and click **Edit**
3. In the **Run Automation Rules** section, select the rule you previously configured
4. Click **OK** to save your changes

![](https://cdn.document360.io/3a63e0a8-1221-4570-aaa1-d43f9b95a612/Images/Documentation/image(141).png)

## Executing the Automation Rule

---

The rule can be triggered by status transitions across various contexts, including item view, bulk status updates, and transitions within the proofing view. Upon execution, all previous file versions and their renditions are deleted from the selected field(s), with only the latest version and its renditions retained. A background job notification titled ‘Clean-up of Historical File Versions’ is generated and tracked for the user who initiated the status change. The notification includes an ‘Open Item’ button to access the specific item, or an ‘Open Module’ button in the case of a bulk status transition.

**Note:**

- All previous file versions are deleted regardless of the ‘Enable Download File’ setting on media holders or custom media holders.
- If ‘Promotions’ is used for versioning, previously promoted versions are *not* preserved—they are also deleted.
