Skip to main content
DELETE
/
api
/
testsets
/
{testset_id}
/
rows
/
{row_index}
Delete testset row
curl --request DELETE \
  --url https://api.keywordsai.co/api/testsets/{testset_id}/rows/{row_index} \
  --header 'Authorization: Bearer <token>'
Delete a specific row from a testset.

Authentication

  • API key: Authorization: Bearer <API key>

Path Parameters

testset_id
string
required
The ID of the testset.
row_index
integer
required
The index of the row to delete.

Examples

import requests

testset_id = "testset_id_123"
row_index = 0
url = f"https://api.keywordsai.co/api/testsets/{testset_id}/rows/{row_index}"
headers = {
    "Authorization": "Bearer YOUR_API_KEY"
}

response = requests.delete(url, headers=headers)
print(response.status_code)

Response