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

# Data Storage Report

The more data your account holds, the harder the platform has to work. The less unneeded data you keep, the faster your segments, filters, and flows run.

The **Data storage** report shows how much space your account's data takes up. Here's every data category and subcategory in it, plus tips for cutting down what you store.

> [!WARNING]
>
> The **Data storage** section may not be available on your account. Check that you have the `View data storage` permission. If you do and the section still isn't there, the feature isn't available for your account.

> [!TIP]
>
> Check the **Data storage** report regularly and set up [data auto-deletion](https://help.maestra.io/administration/how-data-auto-deletion-works.md).

## Who can see the report

You need the `View data storage` permission. By default, these [permission groups](https://help.maestra.io/administration/staff/what-security-groups-are-available.md) have it:

* Owners,
* Analysts,
* Marketers,
* Client developers.

## How to use the report

**1. Open the report**

Go to **Settings → System → Data storage**. The report has two parts:

* **Usage chart** — a horizontal bar that adds up to 100%, split into colored categories.
* **Category list** below the chart. Click a category to see its subcategories, with tips and the entities that take up the most space.

**2. Find the biggest categories**

Find the categories and subcategories with the highest share of storage.

Click a colored segment of the chart, or the header of a collapsed category, to jump to that category.

**3. Follow the tips**

Follow the tips in the **How to optimize** column. For the recommended retention period for each subcategory, see [Categories and tips](#categories-and-tips).

**4. Check again in a week**

Check again in 6–7 days and see what changed:

* If storage usage **went down**, deletion is set up correctly — less data is coming in than is being deleted.
* If usage stayed the same or **went up**, follow the tips for other subcategories or shorten the retention periods you've already set.

> [!TIP]
>
> Maestra Platform forecasts when your account might run out of storage. If the forecast shows **about a month and a half** left, a notification appears in the interface and under **Issues**, with a link to the report — so you have time to check storage and plan your cleanup.

### When deletion takes effect

How fast data is deleted depends on the data type and the deletion method:

* **Auto-deletion** runs the night after you add a deletion criterion. For the maximum number of records deleted per night, see [How data auto-deletion works](https://help.maestra.io/administration/how-data-auto-deletion-works.md#how-auto-deletion-works).
* **Manual deletion** can take up to several months, depending on data volume. When it starts depends on the data type:
  * Unused custom fields (except customer fields) and segmentations start being deleted right after you delete them by hand.
  * Unused customer custom fields start being deleted 45 days after you delete them.
  * Flow runs start being deleted 30 days after you delete them.

## Categories and tips

### Customer actions

This is usually the biggest category, because every customer interaction with your site, app, or store is saved in Maestra Platform as a separate action.

**What to do:**

1. Set retention periods for action templates under [Automated data cleanup](https://help.maestra.io/administration/how-data-auto-deletion-works.md). You can set a separate period for each action type.
   * **Product list changes.** Set up the *Old additions and removals of products in product lists* criterion, or click **Add deletion criterion** to create a new criterion for specific action templates.

     **Recommended retention:** from a few days to 2–4 weeks. If you don't use mechanics like these, you can delete the data sooner.

     > [!NOTE]
     >
     > Deleting these actions leaves the product in the customer's product list.

     > [accordion] How to find all product list change actions
     >
     > This subcategory covers every action in these categories:
     >
     > * *Customer's personal actions — Content consumption and product views — Set product list*
     > * *Customer's personal actions — Content consumption and product views — Remove product from Favorites or Cart*
     > * *Customer's personal actions — Content consumption and product views — Add product to product list*
     > * *Actions on the customer — Error correction and other technical actions — Product list changes*
     >
     > Go to **Customer Data Platform → Actions** and filter by action template category.
   * **Product and category views.** Set up the *Old product and category views* criterion, or click **Add deletion criterion** to create a new criterion for specific action templates.

     **Recommended retention:** 7–30 days.

     > [accordion] How to find all view actions
     >
     > This subcategory covers actions in the *Customer's personal actions — Content consumption and product views — Product or category view* category.
     >
     > Go to **Customer Data Platform → Actions** and filter by action template category.
   * **Site visits** — every action in the *Customer's personal actions — Registration, sign-in, filling in or updating customer information — Site visit* category.

     > [accordion] How to find all site visit actions
     >
     > Go to **Customer Data Platform → Actions** and filter by action template category.
   * **Actions with custom fields** — actions that pass [custom fields](https://help.maestra.io/api-integrations/how-to-create-a-custom-field.md). This subcategory can also include actions from other subcategories if they carry lots of custom field values.
   * **Other actions** — every action passed to Maestra Platform that doesn't fall into another subcategory: sign-ins, registrations, site actions, and more.
     * If you use bulk customer imports through the API (adding or editing customers), check that the import doesn't use the `editActionTemplate` parameter. It issues a personal edit action on every import.
2. Delete **unused action custom fields** — they take up space even when nothing uses them.

### Products and product lists

Your product catalog and the current state of customers' lists (Cart, Favorites, and other product lists).

**What to do:**

1. **Set up auto-deletion for product lists** under [Automated data cleanup](https://help.maestra.io/administration/how-data-auto-deletion-works.md#products-in-product-lists). Choose a period long enough for your mechanics to work — for example, an [abandoned session flow](https://help.maestra.io/flows/examples/abandoned-session-flow.md).
2. **Set up auto-deletion for products with no linked actions or orders** under [Automated data cleanup](https://help.maestra.io/administration/how-data-auto-deletion-works.md#products). Click **Add deletion criterion** and pick a product filter.
3. **Delete unused custom fields** on **products** and product list lines.
4. **Delete outdated products** — you can remove products you no longer sell and don't use in any mechanics from the catalog.

> [!WARNING]
>
> You can't delete products that have linked orders or actions. If they do, delete the linked actions first.

### Campaigns and flows

Data about sent campaigns and flow runs for customers. It grows with your account's activity — the more campaigns you send and the busier your flows, the faster data piles up.

**What to do:**

1. **Turn off flows with test campaigns you don't need.** Follow the link in the *Test sends* subcategory tip to turn the flows off, or go to **Campaigns → Automation → Automated campaigns** and filter campaigns by the *Testing* status.
2. **Set how long campaign statuses are kept** under [Automated data cleanup](https://help.maestra.io/administration/how-data-auto-deletion-works.md#campaign-participations):

   * *Old campaign participations* — deletes every campaign status and campaign action older than the period you set.
   * *Old campaign participations with no response* — deletes only the statuses and campaign actions of campaigns the recipient didn't engage with (no opens, clicks, or unsubscribes).

   **Recommended retention:** 3–12 months, depending on how much history you need for filters.

   > [!NOTE]
   >
   > If different campaigns need different retention periods, set up extra deletion criteria. Use the [campaigns report](https://help.maestra.io/reports/campaigns-report.md) to see how much data each campaign holds.
3. **Delete stopped flows with lots of runs.** Follow the link in the report tip to the top 10 stopped flows. Deleting a flow deletes all its runs automatically. It doesn't affect the [Flows Dashboard](https://help.maestra.io/reports/flows-dashboard.md#how-deleting-data-affects-the-report).

### Orders and loyalty

Orders and their change history. Each order keeps its full chain of changes: statuses, line items, and the promotions and discounts applied. The more often orders update and the more intermediate statuses they go through, the faster this grows. Promo codes and gift cards count here too.

**What to do:**

1. **Set up deletion of intermediate order statuses.** Follow the link in the report tip. The criterion deletes every order action except the first and the last.

   **Recommended retention:** 1–3 months.
2. **Set how long whole orders are kept.** Orders are usually kept for 1–3 years.

   > [!WARNING]
   >
   > Deleting an order automatically deletes its entire history, line items, and related data.
3. **Check custom fields on orders and order lines**, and delete the ones you don't use. Order custom fields are stored in every order state — the more you have, the faster history piles up.
4. **Set up promo code auto-deletion** under [Automated data cleanup](https://help.maestra.io/administration/how-data-auto-deletion-works.md#promo-codes). The criterion deletes promo codes older than the period you set, except those used in an order, those issued with no expiration date, and those issued that haven't expired yet.
5. **Delete outdated promo codes** you no longer use — for example, promo codes that were never issued or used during a promotion.

   > [!WARNING]
   >
   > If a promo code has linked order or promo code issue actions, delete those actions first.

   > [accordion] How to delete old promo codes
   >
   > 1. Follow the link from the report — a list of unissued promo codes opens.
   > 2. Pick the promo codes from past promotions, select them, and delete them.
6. **Delete unused gift cards.**
7. **Check custom fields on discount cards**, and delete the ones you don't use.

### Segmentations

Segment membership data and transition history (customers or products entering and leaving segments). It grows with the number of segments, how many objects are in them, and how often they're recalculated.

**What to do:**

1. **Delete unused segments.** Deleting a segment automatically deletes its current membership and its whole transition history.

   > [!WARNING]
   >
   > Pay special attention to **one-off segments** created for past promotions. Even after the promotion ends, they keep storing which customers or products belong to them.
2. **Set how long segment transition history is kept** for customers and products, using the links in the report. This keeps volume in check for active segments that are recalculated regularly.

   **Recommended retention:** 1–3 months.

   > [!WARNING]
   >
   > Deleting history affects the *By history* segment filter. History is often used to track how segments change and to investigate problems.

### Customers

Customer profile data and its change history.

**What to do:**

1. **Delete unused customer custom fields** using the link in the report tip.
2. **Set how long customer data change actions are kept.** Under **Automated data cleanup**, choose the *Old customer data change actions* criterion.

   **Recommended retention:** 1–2 months.

   > [!WARNING]
   >
   > See [which actions are never deleted](https://help.maestra.io/administration/how-data-auto-deletion-works.md#actions-that-are-never-deleted).
3. **Set how long customer change records are kept.** Under **Automated data cleanup**, set up the criteria in the *Customer change records* block. These are the entries on the **Change history** tab — they're deleted separately from actions. For more, see [Customer change records](https://help.maestra.io/administration/how-data-auto-deletion-works.md#customer-change-records).
4. **Check how you pass customer data.** If every customer update sends all custom fields to Maestra Platform in full, history piles up faster. Pass only the fields that changed.

### Personalization

All data about personalization forms being shown to customers and how customers interact with them.

**What to do:** set up auto-deletion criteria for each subcategory: *Pop-up actions*, *Embedded block actions*, and *Recommendation widget actions*.

> [accordion] Which action templates each subcategory includes
>
> * **Pop-ups** — actions related to [pop-ups](https://help.maestra.io/personalization/pop-up-forms-and-embedded-blocks/how-to-create-pop-ups.md), from these action template categories:
>   * *Actions on the customer — Site personalization — Pop-up shown*
>   * *Personal actions — Site personalization — Pop-up click*
> * **Embedded blocks** — actions related to [embedded blocks](https://help.maestra.io/personalization/pop-up-forms-and-embedded-blocks/how-to-create-embedded-form.md), from these action template categories:
>   * *Actions on the customer — Site personalization — Embedded block shown*
>   * *Personal actions — Site personalization — Embedded block click*
> * **Recommendation widgets** — actions related to recommendation widgets, from these action template categories:
>   * *Actions on the customer — Site personalization — Widget shown*
>   * *Personal actions — Site personalization — Click on product in widget*

### System data

Technical data Maestra Platform collects automatically to run the platform.

> [!NOTE]
>
> You can't manage this data directly or delete it by hand. If this category takes up more than 15%, contact your account manager.

**Main subcategories:**

* **Sessions** — every visit to your site or app is recorded as a session. Sessions can't be deleted.
* **Touchpoints** — technical records of interaction channels. Most are created automatically (for example, [from UTM tags](https://help.maestra.io/customers-orders-and-products/actions/channels-and-touchpoints/channels/how-channels-and-touchpoints-are-created-from-utm-tags.md)), not by hand.
* **Balances** — the history of changes to customers' bonus balances. It's kept as long as the customer profile exists.
* **Profile changes from imports** — every time a customer is changed or added through an import is recorded. It's used in the *Import or edit task* filter.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.