---
title: "ezgh obs datasets"
description: "Datasets: one per environment of a project (--project)."
---

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

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

A dataset holds one environment's records, in a project (`--project`), and is named by environment, ID, slug (dst\_…) or name. Ingest creates it the first time the environment sends a record; you can create it first to choose its retention class.

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

## Flags

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

## Subcommands

| Command | Description |
| --- | --- |
| [`ezgh obs datasets create`](/cli/reference/obs-datasets-create) | Create a dataset for an environment, before it sends data |
| [`ezgh obs datasets delete`](/cli/reference/obs-datasets-delete) | Delete a dataset and all its data |
| [`ezgh obs datasets get`](/cli/reference/obs-datasets-get) | Show a dataset, by environment, ID, slug or name |
| [`ezgh obs datasets list`](/cli/reference/obs-datasets-list) | List the project's datasets |
| [`ezgh obs datasets sampling`](/cli/reference/obs-datasets-sampling) | Trace sampling: which traces a dataset keeps |
| [`ezgh obs datasets update`](/cli/reference/obs-datasets-update) | Change a dataset's name, retention class or placement |

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