---
title: "DELETE /datasets/{dataset_id}/mapfields/{map_field_name}"
method: DELETE
path: "/datasets/{dataset_id}/mapfields/{map_field_name}"
tags: ["datasets"]
---

# DELETE /datasets/{dataset_id}/mapfields/{map_field_name}

`DELETE /datasets/{dataset_id}/mapfields/{map_field_name}`

## Request

- Base URL: `https://api.axiom.co/v2`
- URL: `https://api.axiom.co/v2/datasets/{dataset_id}/mapfields/{map_field_name}`
- Auth: OAuth 2
  - Authorization code: `https://accounts.google.com/o/oauth2/v2/auth`
  - Token URL: `https://www.googleapis.com/oauth2/v4/token` scopes: `datasets|update`
- TypeScript: <https://skmtc.dev/axiom/apis/axiom-public-api/docs/datasets/:dataset_id/mapfields/:map_field_name/delete.ts> (a function with typed inputs; its response is checked against the schema)

Removes a field from the map fields of a dataset. The field itself and its ingested data aren't deleted. Not supported for metrics datasets.

## Path parameters

- `dataset_id` string, required
- `map_field_name` string, required

## Response `204`

Map field removed. No response body.

## Other responses

- `400`: The dataset is a metrics dataset.
- `403`: Forbidden
- `404`: The dataset doesn't exist or the field isn't a map field.

## Changes

- **2026-10-16** (v2) `fbc1b8430feb`: 3 info
  - added the non-success response with the status `400`
  - added the non-success response with the status `403`
  - added the non-success response with the status `404`

[Operation history](https://skmtc.dev/axiom/apis/axiom-public-api/changes/datasets/:dataset_id/mapfields/:map_field_name/delete.md)

---

[API](https://skmtc.dev/axiom/apis/axiom-public-api.md) - [All operations](https://skmtc.dev/axiom/apis/axiom-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/axiom/apis/axiom-public-api/revisions/7e39a295e3ba?raw)
