---
title: "RetentionClass"
description: "how long a unit is kept, and whether it may be pruned behind the gold layer"
section: concepts
address: /concepts/retentionclass
contract: 0476e35e6e275db5
---

# RetentionClass

how long a unit is kept, and whether it may be pruned behind the gold layer

[figure: RetentionClass is a row at platform scope. The drawing shows its fields and the objects that they point at.]

| property | value |
|---|---|
| kind | row |
| scope | platform |
| key | its name |
| store | postgres |
| family | registers |



## Fields


| field | type | required | note |
|---|---|---|---|
| `name` | `text` | yes |  |
| `keep_for` | `duration` | yes |  |
| `prunable_behind_lake` | `bool` | yes |  |
| `basis` | `text` | yes | the rights, the plan, or the platform's own |



## Routes that use it
No route takes or returns RetentionClass directly. The record holds it, and the objects that point at it reach it.
