---
title: "Delete Dataset Rows"
method: DELETE
path: "/v1/datasets/{name}/{version}/rows"
tags: ["datasets"]
---

# Delete Dataset Rows

`DELETE /v1/datasets/{name}/{version}/rows`

## Request

- Base URL: `https://api.pioneer.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.pioneer.ai/v1/datasets/{name}/{version}/rows`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer
- TypeScript: <https://skmtc.dev/pioneer/apis/brain-api/docs/v1/datasets/:name/:version/rows/delete.ts> (a function with typed inputs; its response is checked against the schema)

Deletes selected rows and creates a dataset version.

## Path parameters

- `name` string, required
- `version` string, required

## Request body

- DatasetRowsDeleteRequest: Request to delete specific rows from a dataset. Exactly one of ``row_indices`` or ``fingerprints`` must be provided. Fingerprint-based deletion is preferred because it is immune to dataset mutations between analysis and delete.
  - `row_indices` integer[], nullable: Zero-based indices of rows to remove
  - `fingerprints` string[], nullable: Content fingerprints of rows to remove (position-independent)

## Response `200`

Successful Response

- DatasetRowsDeleteResponse: Response after deleting dataset rows.
  - `success` boolean
  - `dataset_name` string, required
  - `version` string, required
  - `rows_deleted` integer, required
  - `rows_remaining` integer, required
  - `new_version` string, nullable: New version number if a new version was created

## Other responses

- `422`: Validation Error

## Changes

- **2026-09-24** `0e5e86e2bae5`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/pioneer/apis/brain-api/changes/v1/datasets/:name/:version/rows/delete.md)

---

[API](https://skmtc.dev/pioneer/apis/brain-api.md) - [All operations](https://skmtc.dev/pioneer/apis/brain-api/llms.txt) - [OpenAPI document](https://skmtc.dev/pioneer/apis/brain-api/revisions/0e5e86e2bae5?raw)
