# Shipment archiving

> A Safecube shipment is archived by hand by an Editor, or automatically 30 days after it is delivered; archived shipments stay readable on the Archives page, where they can be filtered, exported to CSV or deleted, but not restored.

Archiving moves a shipment out of the active shipments, into the Archives page, where its data stays readable. A shipment is archived by hand from the shipment list or the shipment details page, or automatically once it has been delivered for 30 days. The Archives page, opened from **Archives** in the sidebar, lists every archived shipment with its last status and the details of its tracking.

## Who can archive a shipment

| Gesture | Minimum role |
| ------- | ------------ |
| Open the Archives page and the details of an archived shipment | Viewer |
| Export archived shipments | Viewer |
| Archive a shipment | Editor |
| Delete a shipment permanently | Admin |

## Archive a shipment

1. In the shipment list, open the menu of the shipment's row, or on the shipment details page, open **More options**.
2. Select **Archive shipment**.
3. In the **Archive shipment** dialog, "Are you sure you want to archive this item?" names the shipment. Select **Archive**.

Safecube displays "Shipment archived successfully." and the shipment moves to the Archives page. A shipment blocked because it is **Not trackable** or **Cancelled** can also be archived from its panel in the shipment list, with **Archive**.

![Archive shipment dialog asking to confirm the archiving of shipment MSCU1234567, with the Cancel and Archive buttons](https://docs.safecube.ai/media/images/shared/modal-archive-shipment--default.webp?v=3a6fe6cd)

### Archive several shipments

1. In the shipment list, tick the shipments to archive. The selection bar appears at the bottom of the list.
2. Select **Archive**.
3. In the dialog, which lists the shipments selected, select **Archive**.

Safecube displays "Shipments archived successfully.".

![Archive shipment dialog for a selection of three shipments listing their numbers, with the Cancel and Archive buttons](https://docs.safecube.ai/media/images/shared/modal-archive-multiple--default.webp?v=3de61c10)

## Automatic archiving

Safecube archives a shipment automatically 30 days after it reaches the **Delivered** status. Only delivered shipments are archived automatically: a shipment archived in any other status was archived by a user.

Before that, Safecube stops updating a delivered shipment 7 days after its last event, as described in [Update frequency](/en/platform/container-tracking/update-frequency). When billing stops is described in [Shipment billing](/en/platform/billing/shipment-billing).

## Browse the Archives page

**Archives**, in the sidebar, opens the Archives page; its counter gives the number of archived shipments. The page lists them in a table with the columns **Shipment N°**, **Sealine**, **Status**, **Route** (port of loading to port of discharge), **ETA**, **Transit** (days from ETD to ETA, "-" when a date is missing or the ETD falls after the ETA) and **Archived at**. Shipments are sorted by archiving date, most recent first; selecting a column header sorts by that column. The list shows 25 shipments per page.

The tabs above the table filter the archived shipments:

| Tab | Shipments shown |
| --- | --------------- |
| **All** | Every archived shipment |
| **Last 7 days** | Shipments archived in the last 7 days |
| **Last 30 days** | Shipments archived in the last 30 days |
| **Delivered** | Shipments archived with the **Delivered** status |
| **Not delivered** | Shipments archived in any other status |

**Filters**, in the top bar, searches by shipment number and filters by **Carrier**, **POL**, **POD** and archiving date. **Save as tab** turns the current filters into a tab.

The **+** button next to the tabs opens **Your archive tabs**, to create a tab from filters with **New tab**, hide or show a tab, reorder the tabs, or **Restore defaults**. A tab name is unique and holds up to 30 characters. Custom tabs are saved in the browser, not in the account: they do not follow you to another browser or computer.

When no archived shipment matches, the page reads "No found shipments".

![Archives page with the All, Last 7 days, Last 30 days, Delivered and Not delivered tabs and a table of 18 archived shipments with their statuses Planned, Late, Delivered, No data found and Incomplete, their route, ETA, transit time and archiving date](https://docs.safecube.ai/media/images/shared/archives--default.webp?v=7f8fdacc)

## Read the details of an archived shipment

Selecting an archived shipment, or **View details** in its row menu, opens its details on the side of the page, read only:

- **Transit**: the route and the status of the shipment;
- **Schedule**: **Departure · ETD**, **First announced ETA**, **Final ETA** and **Delay reported by carrier**. When both ETAs are known, Safecube shows how the arrival moved: "On initial ETA" when the carrier held its first date, "N days later" when it pushed the arrival back, "N days earlier" when it brought it forward;
- **Tracking lifecycle**: **Tracked from**, **Archived**, **Tracked for** and **End of tracking**;
- **Carrier & identifiers**: the **Reference type** and the **Record ID**, which **Copy record ID** copies;
- **Custom fields**: the custom data of the shipment when it was archived.

**End of tracking** summarises the status of the shipment when it was archived:

| End of tracking | Status when archived |
| --------------- | -------------------- |
| **Completed normally** | Delivered |
| **Archived while in transit** | In transit, archived by a user |
| **Archived before departure** | Planned, archived by a user |
| **Archived with partial data** | Incomplete, archived by a user |
| **Archived without carrier data** | No data found, archived by a user |
| **Archived manually** | Any other status, archived by a user |

![Details of archived shipment MSCU7702345 with the Schedule, Tracking lifecycle, Carrier & identifiers and Custom fields sections: the final ETA is 2 days later than the first announced ETA, and End of tracking reads Archived while in transit](https://docs.safecube.ai/media/images/shared/modal-archive-details--default.webp?v=2c395d22)

## Export archived shipments

1. On the Archives page, select **Export**.
2. In **Export archived shipments**, optionally choose a **Date range**, with a **Start date** and an **End date**.
3. Select **Export archived**.

Safecube downloads the file `Safecube_Export_Archived_Containers.csv` and displays "Archived shipments exported successfully.".

![Export archived shipments dialog with the Date range field and the Export archived button](https://docs.safecube.ai/media/images/shared/modal-export-archived--default.webp?v=6497af71)

## Delete an archived shipment

An Admin deletes an archived shipment permanently from its row menu, with **Delete shipment**, or deletes several from the selection bar, with **Delete**. The deletion cannot be undone: the shipment and its data are removed. An Editor sees **Delete** greyed out, with "Only admins or owners can delete shipments permanently.". Deleting an active shipment is described in [Shipment list](/en/platform/shipment-views/shipment-list).

## Limits

- No action of the Safecube platform restores an archived shipment to the active shipments.
- An archived shipment cannot be modified: its details are read only, and its row menu only offers **View details** and **Delete shipment**.
- An archived shipment is not part of the CSV export of the shipment list.
- Custom tabs of the Archives page are kept in the browser where they were created.
