---
title: "ezgh obs retention-classes list"
description: "List the retention classes a dataset can have."
---

> 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 list

{/* 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 list
```

List the retention classes: how many days records stay in hot storage (searched fastest) and how many days they're kept in all, counted from each record's event time. The default is the class a dataset gets when none is given, including one created by ingest for a new environment.

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

## Flags

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

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