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

# Extended retention

> Keep logs, traces, and metrics longer than your plan's retention, and pay only for the extra days.

Every plan keeps each type of data for a set number of days (see
[Retention](https://docs.squasher.ai/features/plans-and-billing.md#retention)). On Pro, Team, and Scale you can keep logs,
traces, and metrics longer. Only the data kept past the plan's days is billed. Data inside the
plan's retention is never billed, and queries are free at every retention.

## Choices and price

| Data type | Included | Longer choices | Price |
| - | -: | - | - |
| Logs | 30 days | 90, 180, or 365 days | \$0.06 per GB-month past the included days |
| Traces | 30 days | 90, 180, or 365 days | \$0.06 per GB-month past the included days |
| Metrics | 395 days | 730 days | \$0.06 per GB-month past the included days |

A GB-month is 1 GB of compressed stored data kept for a whole month. Squasher compresses logs
about 16 times, so 100 GB of logs a month kept for 365 days costs about \$4.20 a month.

## Change retention

1. Open **Settings** in a project, then the **Data** tab.
2. Under **Retention**, choose the number of days for logs, traces, or metrics. Each choice shows
   its estimated monthly charge, from the data stored now.

Only owners and admins can change retention. The choice applies to every project in the
organization.

* **Longer retention** applies to data received after the change. Data already stored keeps its
  deletion date.
* **Shorter retention** waits 7 days. During that time you can change your mind and nothing is
  deleted. After that, data older than the new retention is deleted.

## Billing

Squasher measures the GB-months of each billing period. After the period ends, the GB-months kept
past the included days are rounded up to whole GB-months and added to your next invoice. Free
cannot extend retention.

* If you change retention during a period, each day is billed at the retention in force that day.
* Data stored before a change keeps its deletion date, so after a raise (for example from 90 to
  365 days) only data that is really older than the included days is billed.
* If your subscription ends at the end of a period, that last period is billed on your final
  invoice.

If you move to Free, your longer retention ends: after 7 days, data older than the Free retention
is deleted. The extra days are not billed after the move.

## See the charge

**Billing › Usage › Storage** shows the GB-months inside your plan's retention, the GB-months kept
past it, the rate, and the charge so far. The organization usage API returns the same numbers in
`storage` (`included_gb_months`, `overage_gb_months`, `overage_rate`); see
[Organizations](https://docs.squasher.ai/api-reference/organizations.md).


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