> ## 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 map field

> Removes one field from the map-field configuration.

`axiom.deleteMapField` removes one field from the map-field configuration. The underlying field and retained event values remain.

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

export default automation("Delete map field", () => {
  onHttpRequest({ scope: "automation" })
  axiom.deleteMapField({ datasetName: "production", fieldName: "attributes" })
})
```

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

## Inputs

`datasetName` selects the dataset by name or ID. `fieldName` selects the map-field designation to remove.

## Output

Returns `null` after Axiom confirms removal. The underlying field and retained events remain.

## Permission and failures

The API token needs the organization-level `datasets|update` capability and access to the target dataset. Axiom returns an error when the dataset or map field is missing. This mutation is not retried automatically after an ambiguous provider response.
