Delete Test Executions

Bulk-delete test executions from a test run. Specify execution UUIDs or use selectAll. Active executions (running/pending/cancelling) cannot be deleted.

POST https://api.futureagi.com/simulate/run-tests/{run_test_id}/delete-test-executions/

Authentication

X-Api-Key API Key Required

Your Future AGI API key used to authenticate requests. You can find and manage your API keys in the Dashboard under Settings.

X-Secret-Key Secret Key Required

Your Future AGI secret key, used alongside the API key for request authentication. This is generated when you create an API key in the Dashboard.

Path parameters

run_test_id UUID Required

UUID of the test run containing the executions to delete.

Request body

test_execution_ids array of strings Optional

Array of test execution UUIDs to delete. Required when select_all is false. Executions in RUNNING, PENDING, or CANCELLING status cannot be deleted.

select_all boolean Optional

When true, deletes all eligible executions, ignoring test_execution_ids. Defaults to false.

Response

200 OK
message string
Confirmation message with deletion count.
run_test_id string
UUID of the parent test run.
deleted_count integer
Number of executions deleted.
deleted_ids array of strings
UUIDs of the deleted executions.

Errors

400 Bad Request Optional

Invalid request, empty testExecutionIds, or targeted executions are still running/pending/cancelling.

401 Unauthorized Optional

Missing or invalid X-Api-Key or X-Secret-Key headers.

404 Not Found Optional

No test run found with the specified run_test_id.

500 Internal Server Error Optional

Unexpected server error. Retry later or contact support.

GET /
Authentication
REQUEST
 
RESPONSE