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

Authentication

  • API key: Authorization: Bearer <API key>

Path Parameters

testset_id
string
required
The ID of the testset to delete.

Examples

import requests

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

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

Response