Skip to main content

Delete a test

Permanently delete a test. Scope: tests:write.

DELETE/api/v1/tests/{id} 🔒 API key

Permanently deletes a test (relation teardown + org usage decrement). Scope: tests:write. Visibility-gated (404 if not visible to the key), then requires employer-write authority in one of the test’s organizations (admins bypass; a platform-global test with no organization is admin-only).

Path parameters

ParameterTypeDescription
idstringThe test id.

Example request

curl -X DELETE https://app.talent-ray.com/api/v1/tests/test_js \
  -H "Authorization: Bearer tr_YOUR_KEY"

Response

204 No Content — the test was deleted.

Status codes

StatusMeaning
204Deleted.
401No valid API key.
403insufficient_scope (missing tests:write) or forbidden (no write authority in the test’s org).
404Not found, or not visible to the key.
429Rate limit exceeded.