Test cases - Delete
- TypeScript
- Python
Delete a single test case with deleteTestCase()
.
Delete a single test case with delete_test_case()
.
Example
typescript
import {deleteTestCase } from "@gentrace/core";constsuccess = awaitdeleteTestCase ("550e8400-e29b-41d4-a716-446655440000");console .log ("Deletion successful: ",success );
python
import osimport gentracegentrace.init(api_key=os.getenv("GENTRACE_API_KEY"))success = gentrace.delete_test_case("550e8400-e29b-41d4-a716-446655440000")print("Deletion successful: ", success)
Arguments
id
(string): The ID of the test case to delete. Must be a valid UUID.
test_case_id
(string): The ID of the test case to delete.
Returns
boolean
:true
if the test case was deleted successfully,false
otherwise.
bool
:True
if the test case was deleted successfully,False
otherwise.