DELETE
/
test-case
/
{id}
curl --request DELETE \
  --url https://api.tela.com/test-case/{id}

Delete a test case by its unique identifier.

Delete a Test Case

const API_KEY = process.env.TELA_API_KEY;
const testCaseId = 'test_case_uuid';

const response = await fetch(`https://api.tela.ai/test-case/${testCaseId}`, {
  method: 'DELETE',
  headers: {
    'Authorization': `Bearer ${API_KEY}`,
    'Content-Type': 'application/json'
  }
});

const data = await response.json();
console.log(data);

Parameters

NameTypeRequiredDescription
idstringYesThe UUID of the test case to delete

Response

A successful deletion will return a 200 OK status. The test case will be marked as deleted but may still be retrievable with the deletedAt field populated.

Path Parameters

id
string
required

Response

200

Test case deleted successfully