---
title: "ezgh obs retention-classes"
description: "Retention classes: how long datasets keep data."
---

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

# ezgh obs retention-classes

{/* Generated by ezgh-cli's internal/tools/clidocs from the ezgh command tree. Don't edit: change the command's help in ezgh-cli and regenerate. */}

```sh
ezgh obs retention-classes <command>
```

A dataset's retention class says how long its records stay in hot storage and how long they're kept in all. Records past the hot window are still searched, from cold storage.

Part of [`ezgh obs`](/cli/reference/obs).

## Flags

This command also takes the [global flags](/cli/reference#global-flags).

## Subcommands

| Command | Description |
| --- | --- |
| [`ezgh obs retention-classes list`](/cli/reference/obs-retention-classes-list) | List the retention classes a dataset can have |

Source: https://docs.ezghcloud.com/cli/reference/obs-retention-classes/index.mdx
