Delete Tests
The follwing mutation deletes a test:
- Query
- cURL
mutation DeleteTest($testId: ObjectID!) {
deleteTest(input: {
testId: $testId
}) {
test {
id
}
}
}
curl -X POST -H "Content-Type: application/json" -H "apollographql-client-name: docs-example-client" -H "apollographql-client-version: 1.0.0" -H "x-auth-token: YOUR_API_SESSION_TOKEN" --data '{"query":"mutation DeleteTest($testId: ObjectID!) { deleteTest(input: { testId: $testId }) { test { id } } }"}' https://api.lumar.io/graphql
caution
Removing a test from a test suite won't affect any previously completed builds and test results.