---
title: "Delete a defined test"
method: DELETE
path: "/v2/tests/{testId}"
tags: ["Tests"]
---

# Delete a defined test

`DELETE /v2/tests/{testId}`

## Request

- Base URL: `https://app.aiva.works` (the document declares no server; this is the origin it was published from)
- URL: `https://app.aiva.works/v2/tests/{testId}`
- Auth: API key in header `X-API-KEY`

Deletes a defined test, across all of its versions.

## Path parameters

- `testId` string, guid, required

## Response `204`

The test was deleted, or no such test exists in this tenant

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: User does not have permission to access tests
- `409`: The test is being edited or recorded and cannot be deleted right now
- `500`: Server Error

---

[API](https://skmtc.dev/aiva/apis/aiva-cloud-api.md) · [All operations](https://skmtc.dev/aiva/apis/aiva-cloud-api/llms.txt) · [OpenAPI document](https://skmtc.dev/aiva/apis/aiva-cloud-api/revisions/70eef14d3bcd?raw)
