# Clean Duplicate Attachments

## Overview

This script is meant to be used to clean up the contract terms with duplicate attachments.

The script is composed of the following steps:
1. Fetch the `contract_term` records with duplicate attachments directly from the database.
2. For each `contact_term` record, dedupe the attachments and update the contract term by calling ows-abacus-contract.

## Running the script

1. Copy the `.env.shadow` template to a `.env` file and fill in the values
2. Install the dependencies: `make env`
3. Run the script: `make run`
