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

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# Delete dataset

> Permanently deletes one dataset and its stored data.

`axiom.deleteDataset` permanently deletes one dataset and its stored data. Returns `null` after Axiom accepts the deletion.

```ts automations/axiom-delete-dataset.automation.ts theme={null}
import { automation, onHttpRequest } from "automate.ax"
import { axiom } from "automate.ax/axiom"

export default automation("Delete dataset", () => {
  onHttpRequest({ scope: "automation" })
  axiom.deleteDataset({ datasetName: "temporary-logs" })
})
```

<Warning>
  This operation changes or deletes provider data. Confirm the target before
  deployment.
</Warning>

## Input

`datasetName` is required and accepts the dataset name or ID to delete.

## Output

Returns `null` after Axiom confirms deletion.

## Permission and failures

The API token needs the organization-level `datasets|delete` capability. Axiom rejects missing or inaccessible datasets. Deletion removes retained data permanently and is not retried automatically after an ambiguous provider response.
