curl -X DELETE "https://nunu.ai/api/v1/project/your-project-id/tests/a5060a07-d386-4269-98ce-b33fb894201e" \
-H "X-Api-Key: YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{ "delete_associated_jobs": true }'
{ "id": "a5060a07-d386-4269-98ce-b33fb894201e", "deleted": true }
{
"error": "cannot delete tests with associated runs"
}
Tests
Delete Test
Delete a test case from the authenticated project.
DELETE
/
project
/
{projectId}
/
tests
/
{testId}
curl -X DELETE "https://nunu.ai/api/v1/project/your-project-id/tests/a5060a07-d386-4269-98ce-b33fb894201e" \
-H "X-Api-Key: YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{ "delete_associated_jobs": true }'
{ "id": "a5060a07-d386-4269-98ce-b33fb894201e", "deleted": true }
{
"error": "cannot delete tests with associated runs"
}
Permission Required:
project:edit-tests409 if the test has associated runs.
Pass delete_associated_jobs=true to also delete the related jobs (which is
required to delete a test that has been run before).
Path Parameters
string
required
The test ID (UUID)
Request Body
boolean
default:"false"
When
true, also delete the jobs (and runs) that referenced this test.boolean
default:"false"
When
true, bypass safety checks that would otherwise prevent deletion.
Intended for cleanup scenarios; use with care.Response
string
required
ID of the deleted test (echoes the path param)
boolean
required
Always
true on successcurl -X DELETE "https://nunu.ai/api/v1/project/your-project-id/tests/a5060a07-d386-4269-98ce-b33fb894201e" \
-H "X-Api-Key: YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{ "delete_associated_jobs": true }'
{ "id": "a5060a07-d386-4269-98ce-b33fb894201e", "deleted": true }
{
"error": "cannot delete tests with associated runs"
}
Authorizations
API key for authentication
Path Parameters
The test ID (UUID)
The project ID. You can copy it from the project settings page or the project URL in the dashboard.