---
title: "Delete testset rows"
method: DELETE
path: "/api/testsets/{testset_id}/rows/"
tags: ["testsets"]
---

# Delete testset rows

`DELETE /api/testsets/{testset_id}/rows/`

Delete multiple rows from a testset by `row_index`.

## Path parameters

- `testset_id` string, required

## Headers

- `Authorization` string, required

## Request body

- object
  - `row_indexes` number[], required — Row indexes to delete.

## Response `200`

Successful response

## Other responses

- `400` — Bad Request
- `401` — Unauthorized - Missing/invalid authentication
- `404` — Not Found

## Changes

> 6 revisions in range; 2 could not be searched.

- **2026-08-13** `4e064cf81dae` — 4 info
  - added optional request body
  - added the non-success response with the status `400`
  - added the non-success response with the status `401`
  - added the non-success response with the status `404`
- **2026-07-31** `c26d550029f8` — 1 breaking, 3 info
  - removed the request body
  - removed the non-success response with the status `400`
  - removed the non-success response with the status `401`
  - removed the non-success response with the status `404`

[Change history](https://skmtc.dev/keywordsai/apis/api-reference/changes/api/testsets/:testset_id/rows/delete.md)

---

[API](https://skmtc.dev/keywordsai/apis/api-reference.md) · [All operations](https://skmtc.dev/keywordsai/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/keywordsai/api-reference/revisions/c61efaf24756/schema)
